Fix getting FileChooser portal version

This commit is contained in:
Ilya Fedin 2020-11-06 20:45:42 +04:00 committed by John Preston
parent f980cade39
commit 876c57dcfb
1 changed files with 2 additions and 2 deletions

View File

@ -162,11 +162,11 @@ uint FileChooserPortalVersion() {
qsl("version")
});
const QDBusReply<uint> reply = QDBusConnection::sessionBus().call(
const QDBusReply<QVariant> 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()));