forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0' into HEAD
Change-Id: I3b6a4bd860c11324d989818d9010f07faaac677a
This commit is contained in:
@@ -161,8 +161,11 @@ void CtfVisualizerTool::loadJson()
|
||||
auto *task = new QFuture<void>(futureInterface);
|
||||
|
||||
QThread *thread = QThread::create([this, filename, futureInterface]() {
|
||||
m_traceManager->load(filename);
|
||||
|
||||
try {
|
||||
m_traceManager->load(filename);
|
||||
} catch (...) {
|
||||
// nlohmann::json can throw exceptions when requesting type that is wrong
|
||||
}
|
||||
m_modelAggregator->moveToThread(QApplication::instance()->thread());
|
||||
m_modelAggregator->setParent(this);
|
||||
futureInterface->reportFinished();
|
||||
|
||||
Reference in New Issue
Block a user