mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-05-04 06:04:33 +02:00
refactoring
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <vtkImageData.h>
|
||||
|
||||
#include <QString>
|
||||
|
||||
LocalizationWorker::LocalizationWorker(QObject* parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
@@ -32,9 +34,8 @@ void LocalizationWorker::run(vtkImageData* volume, LocalizationParams params)
|
||||
|
||||
emit finished(std::move(markers));
|
||||
} catch (const std::exception& e) {
|
||||
// Keep behavior consistent with legacy code: treat as aborted.
|
||||
// (UI can be extended to show the exception message.)
|
||||
(void)e;
|
||||
emit aborted();
|
||||
emit failed(QString::fromUtf8(e.what()));
|
||||
} catch (...) {
|
||||
emit failed(QStringLiteral("Unknown error in localization"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user