summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteserver.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-11-11 15:12:25 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2014-11-12 16:13:05 +0100
commit11964021d9f261fe2d04a41d41c3ad0c5f4a945f (patch)
tree01b6684838069f4c836d95c3c6516e3e83ffe7a2 /src/libs/installer/remoteserver.cpp
parent98c4b02da6f07e5101ff66fd85810d9816c28f16 (diff)
Make it possible to register the Repository class independently.
Fixes for example invalid repository entries inside the config files after streaming the type as QVariant over the connection and recreating it client or server-side. Task-number: QTIFW-569 Change-Id: Ide328d1e6f73ff538a1b107fcc915e0a260cce24 Reviewed-by: Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/remoteserver.cpp')
-rw-r--r--src/libs/installer/remoteserver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/installer/remoteserver.cpp b/src/libs/installer/remoteserver.cpp
index 1f6f484ea..c5559cb10 100644
--- a/src/libs/installer/remoteserver.cpp
+++ b/src/libs/installer/remoteserver.cpp
@@ -33,7 +33,9 @@
**************************************************************************/
#include "remoteserver.h"
+
#include "remoteserver_p.h"
+#include "repository.h"
namespace QInstaller {
@@ -41,6 +43,7 @@ RemoteServer::RemoteServer(QObject *parent)
: QObject(parent)
, d_ptr(new RemoteServerPrivate(this))
{
+ Repository::registerMetaType(); // register, cause we stream the type as QVariant
}
RemoteServer::~RemoteServer()