From d85138ebe4ba6d26dceb7e7e352b917f2da94ca1 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 17 Dec 2017 18:15:04 +0200 Subject: [PATCH] exit from main when quiting --- app/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index 0645960c6..0306cae1b 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -126,6 +126,7 @@ int main(int argc, char **argv) if (!lockFile.tryLock(timeout)) { qInfo() << i18n("An instance is already running!, use --replace to restart Latte"); qGuiApp->exit(); + return 0; } if (parser.isSet(QStringLiteral("import"))) { @@ -133,7 +134,8 @@ int main(int argc, char **argv) if (!imported) { qInfo() << i18n("The configuration cannot be imported"); - app.quit(); + qGuiApp->exit(); + return 0; } }