fix: emit abort in LaunchController

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-08-04 10:02:54 +02:00
parent 4ed296bad4
commit 355762aa30
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 4 additions and 0 deletions

View File

@ -1258,6 +1258,9 @@ bool Application::launch(
}
connect(controller.get(), &LaunchController::succeeded, this, &Application::controllerSucceeded);
connect(controller.get(), &LaunchController::failed, this, &Application::controllerFailed);
connect(controller.get(), &LaunchController::aborted, this, [this] {
controllerFailed(tr("Aborted"));
});
addRunningInstance();
controller->start();
return true;

View File

@ -160,6 +160,7 @@ void LaunchController::login() {
);
if (result == QMessageBox::No) {
emitAborted();
return;
}
}