Skip to content

Commit 8a35105

Browse files
aleixpolximion
authored andcommitted
offline: Ensure the enum is registered
Otherwise we get a crash saying: [fatal] discover (unknown:0) - QDBusPendingReply: type PackageKit::Transaction::Role is not registered with QtDBus See https://bugs.kde.org/show_bug.cgi?id=508271
1 parent ad85e46 commit 8a35105

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/offline.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ using namespace PackageKit;
2626
Offline::Offline(QObject *parent) : QObject(parent)
2727
, d_ptr(new OfflinePrivate(this))
2828
{
29+
qRegisterMetaType<Transaction::Role>();
2930
QDBusConnection::systemBus().connect(PK_NAME,
3031
PK_PATH,
3132
DBUS_PROPERTIES,

0 commit comments

Comments
 (0)