From 1f685e1e777007428c26195f88a22bbd993e5e62 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sat, 21 May 2011 19:05:57 +0000 Subject: [PATCH] bug fix with start minimized command line argument -> the hide command was not issued in that case --- src/llconserverdlg.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/llconserverdlg.cpp b/src/llconserverdlg.cpp index c53fbf51..dfba9ec5 100755 --- a/src/llconserverdlg.cpp +++ b/src/llconserverdlg.cpp @@ -115,12 +115,6 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, "Country where the server is located combo box" ) ); - // act on "start minimized" flag - if ( bStartMinimized ) - { - showMinimized(); - } - // check if system tray icon can be used bSystemTrayIconAvaialbe = SystemTrayIcon.isSystemTrayAvailable(); @@ -153,6 +147,13 @@ CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, SystemTrayIcon.show(); } + // act on "start minimized" flag (note, this has to be done after setting + // the correct value for the system tray icon availablility) + if ( bStartMinimized ) + { + showMinimized(); + } + // set text for version and application name lblNameVersion->setText ( QString ( APP_NAME ) + tr ( " server " ) + QString ( VERSION ) );