From 863b337972a96955633d6641d0f60ea1e254fb79 Mon Sep 17 00:00:00 2001 From: joshua Date: Tue, 2 Jul 2019 21:13:55 +0200 Subject: [PATCH] Minor : don't display gui when qet is launched with specific argument --- sources/qetapp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index a51a19ec6..39d5d3d2a 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -76,6 +76,9 @@ QETApp::QETApp() : { m_qetapp = this; parseArguments(); + if (non_interactive_execution_) { + std::exit(EXIT_SUCCESS); + } initConfiguration(); initLanguage(); QET::Icons::initIcons(); @@ -105,9 +108,10 @@ QETApp::QETApp() : } buildSystemTrayMenu(); - if (m_splash_screen) { - m_splash_screen -> hide(); - } + if (m_splash_screen) { + m_splash_screen -> hide(); + } + checkBackupFiles(); }