Merge remote-tracking branch 'origin/11.0' into HEAD

Change-Id: I3b6a4bd860c11324d989818d9010f07faaac677a
This commit is contained in:
David Schulz
2023-09-12 09:46:28 +02:00
6 changed files with 10 additions and 7 deletions

View File

@@ -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();