From 876c57dcfb9672e1ca8c9b65572792ff378da8e0 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 6 Nov 2020 20:45:42 +0400 Subject: [PATCH] Fix getting FileChooser portal version --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index deb0e32683..6bd4847f1d 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -162,11 +162,11 @@ uint FileChooserPortalVersion() { qsl("version") }); - const QDBusReply reply = QDBusConnection::sessionBus().call( + const QDBusReply reply = QDBusConnection::sessionBus().call( message); if (reply.isValid()) { - return reply.value(); + return reply.value().toUInt(); } else { LOG(("Error getting FileChooser portal version: %1") .arg(reply.error().message()));