From a223510cf7b8ca72dce7b2f3d6ed9c6ca2284fab Mon Sep 17 00:00:00 2001 From: sudden6 Date: Fri, 30 Dec 2016 12:46:11 +0100 Subject: [PATCH] fix(toxid): Tox ID construction from ToxMe --- src/net/toxme.cpp | 2 +- src/nexus.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/toxme.cpp b/src/net/toxme.cpp index 4301c4db7..89abc678c 100644 --- a/src/net/toxme.cpp +++ b/src/net/toxme.cpp @@ -184,7 +184,7 @@ ToxId Toxme::lookup(QString address) response.truncate(idEnd); - return ToxId(response); + return ToxId(QString(response)); } Toxme::ExecCode Toxme::extractError(QString json) diff --git a/src/nexus.cpp b/src/nexus.cpp index 413785786..7512124e4 100644 --- a/src/nexus.cpp +++ b/src/nexus.cpp @@ -99,6 +99,8 @@ void Nexus::start() qRegisterMetaType("ToxFile"); qRegisterMetaType("ToxFile::FileDirection"); qRegisterMetaType>("std::shared_ptr"); + qRegisterMetaType("ToxId"); + qRegisterMetaType("ToxKey"); loginScreen = new LoginScreen();