bug fix with start minimized command line argument -> the hide command was not issued in that case

This commit is contained in:
Volker Fischer 2011-05-21 19:05:57 +00:00
parent 41804bf223
commit 1f685e1e77

View file

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