X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fretracer.cpp;h=500d859aa3f6d73011acc0bbaabd38a58ed19287;hb=ed40bc699e44f810d27c7e50d396f7749c8cc9c2;hp=98a4db220e7d203d320774ec790fce87ff8a8de2;hpb=36a0fd36456a7ae909cc04e20781b489c4ddc37b;p=apitrace diff --git a/gui/retracer.cpp b/gui/retracer.cpp index 98a4db2..500d859 100644 --- a/gui/retracer.cpp +++ b/gui/retracer.cpp @@ -98,8 +98,8 @@ void Retracer::run() this, SIGNAL(finished(const QString&))); connect(retrace, SIGNAL(error(const QString&)), this, SIGNAL(error(const QString&))); - connect(retrace, SIGNAL(foundState(const ApiTraceState&)), - this, SIGNAL(foundState(const ApiTraceState&))); + connect(retrace, SIGNAL(foundState(ApiTraceState*)), + this, SIGNAL(foundState(ApiTraceState*))); connect(retrace, SIGNAL(retraceErrors(const QList&)), this, SIGNAL(retraceErrors(const QList&))); @@ -155,7 +155,7 @@ void RetraceProcess::replayFinished() if (m_captureState) { bool ok = false; QVariantMap parsedJson = m_jsonParser->parse(output, &ok).toMap(); - ApiTraceState state(parsedJson); + ApiTraceState *state = new ApiTraceState(parsedJson); emit foundState(state); msg = tr("State fetched."); } else {