Commit 67e84bad authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix grammar and don't minimize if config_getInt fails

parent 50866663
...@@ -308,22 +308,21 @@ inline void MainInterface::createStatusBar() ...@@ -308,22 +308,21 @@ inline void MainInterface::createStatusBar()
inline void MainInterface::initSystray() inline void MainInterface::initSystray()
{ {
bool b_createSystray = false;
bool b_systrayAvailable = QSystemTrayIcon::isSystemTrayAvailable(); bool b_systrayAvailable = QSystemTrayIcon::isSystemTrayAvailable();
if( config_GetInt( p_intf, "qt-start-minimized") ) bool b_systrayWanted = config_GetInt( p_intf, "qt-system-tray" );
if( config_GetInt( p_intf, "qt-start-minimized") > 0 )
{ {
if( b_systrayAvailable ) if( b_systrayAvailable )
{ {
b_createSystray = true; b_systrayWanted = true;
hide(); hide();
} }
else msg_Err( p_intf, "You can't minimize if you haven't a system " else
"tray bar" ); msg_Err( p_intf, "cannot start minimized without system tray bar" );
} }
if( config_GetInt( p_intf, "qt-system-tray") )
b_createSystray = true;
if( b_systrayAvailable && b_createSystray ) if( b_systrayAvailable && b_systrayWanted )
createSystray(); createSystray();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment