From 2f0d43a538cc59c068399281a4102e00e52892e0 Mon Sep 17 00:00:00 2001 From: Peter L Jones Date: Sun, 15 Oct 2023 12:04:08 +0100 Subject: [PATCH] Use single application exec --- src/main.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e920c8dd3b..965aa1cb7c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -962,15 +962,12 @@ int main ( int argc, char** argv ) // show dialog ClientDlg.show(); - pApp->exec(); } else # endif { // only start application without using the GUI qInfo() << qUtf8Printable ( GetVersionAndNameStr ( false ) ); - - pApp->exec(); } } else @@ -1027,8 +1024,6 @@ int main ( int argc, char** argv ) { ServerDlg.show(); } - - pApp->exec(); } else #endif @@ -1042,10 +1037,10 @@ int main ( int argc, char** argv ) { Server.SetDirectoryType ( AT_CUSTOM ); } - - pApp->exec(); } } + + pApp->exec(); } catch ( const CGenErr& generr )