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 ) );