Navigation Menu

Skip to content

Commit

Permalink
[buteo-syncfw] Fix connection error with MinorCode. Contributes to JB…
Browse files Browse the repository at this point in the history
…#53994

Used to get:
QObject::connect: Cannot queue arguments of type 'SyncResults::MinorCode'
(Make sure 'SyncResults::MinorCode' is registered using qRegisterMetaType().)
  • Loading branch information
pvuorela committed Apr 21, 2021
1 parent 4ade566 commit 9f0f93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libbuteosyncfw/pluginmgr/SyncPluginBase.cpp
Expand Up @@ -21,6 +21,7 @@
*
*/
#include "SyncPluginBase.h"
#include "SyncResults.h"
#include "PluginCbInterface.h"

using namespace Buteo;
Expand All @@ -33,6 +34,7 @@ SyncPluginBase::SyncPluginBase(const QString &aPluginName,
iProfileName(aProfileName)
{
// register various metatypes used in DBus arguments
qRegisterMetaType<SyncResults::MinorCode>("SyncResults::MinorCode");
qRegisterMetaType<Sync::SyncStatus>("Sync::SyncStatus");
qRegisterMetaType<Sync::TransferDatabase>("Sync::TransferDatabase");
qRegisterMetaType<Sync::TransferType>("Sync::TransferType");
Expand Down
2 changes: 2 additions & 0 deletions msyncd/PluginRunner.cpp
Expand Up @@ -23,6 +23,7 @@

#include "PluginRunner.h"
#include "LogMacros.h"
#include "SyncResults.h"

using namespace Buteo;

Expand All @@ -38,6 +39,7 @@ PluginRunner::PluginRunner(PluginType aPluginType, const QString &aPluginName,
FUNCTION_CALL_TRACE;

// register various metatypes used in DBus arguments
qRegisterMetaType<SyncResults::MinorCode>("SyncResults::MinorCode");
qRegisterMetaType<Sync::SyncStatus>("Sync::SyncStatus");
qRegisterMetaType<Sync::TransferDatabase>("Sync::TransferDatabase");
qRegisterMetaType<Sync::TransferType>("Sync::TransferType");
Expand Down

0 comments on commit 9f0f93c

Please sign in to comment.