mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fix getting FileChooser portal version
This commit is contained in:
parent
f980cade39
commit
876c57dcfb
1 changed files with 2 additions and 2 deletions
|
@ -162,11 +162,11 @@ uint FileChooserPortalVersion() {
|
||||||
qsl("version")
|
qsl("version")
|
||||||
});
|
});
|
||||||
|
|
||||||
const QDBusReply<uint> reply = QDBusConnection::sessionBus().call(
|
const QDBusReply<QVariant> reply = QDBusConnection::sessionBus().call(
|
||||||
message);
|
message);
|
||||||
|
|
||||||
if (reply.isValid()) {
|
if (reply.isValid()) {
|
||||||
return reply.value();
|
return reply.value().toUInt();
|
||||||
} else {
|
} else {
|
||||||
LOG(("Error getting FileChooser portal version: %1")
|
LOG(("Error getting FileChooser portal version: %1")
|
||||||
.arg(reply.error().message()));
|
.arg(reply.error().message()));
|
||||||
|
|
Loading…
Add table
Reference in a new issue