Some hiding fixes.

This commit is contained in:
Martin Rotter 2014-03-13 09:31:29 +01:00
parent 6d587c0e03
commit e3a7034371

View File

@ -191,13 +191,14 @@ void FormMain::switchVisibility(bool force_hide) {
if (force_hide || isVisible()) {
if (SystemTrayIcon::isSystemTrayActivated()) {
hide();
m_ui->m_actionSwitchMainWindow->blockSignals(true);
m_ui->m_actionSwitchMainWindow->setChecked(false);
m_ui->m_actionSwitchMainWindow->blockSignals(false);
}
else {
setWindowState(windowState() & Qt::WindowMinimized);
showMinimized();
}
m_ui->m_actionSwitchMainWindow->blockSignals(true);
m_ui->m_actionSwitchMainWindow->setChecked(false);
m_ui->m_actionSwitchMainWindow->blockSignals(false);
}
else {
display();