X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=f137ebe7b1f981d87d051011af9b774935a8c5ae;hp=e0fff46e4260d6ceccd795a90bcb70671e87ef8d;hb=e04d897d69a62d0b6062d788812ca12d6d85b75d;hpb=754a784dda6fe5235c59a7ce3829599ccf62eeda diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index e0fff46e..f137ebe7 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -850,23 +850,12 @@ void MainWin::closeEvent(QCloseEvent *event) { } void MainWin::changeEvent(QEvent *event) { - if(event->type() == QEvent::WindowStateChange) { - if(windowState() & Qt::WindowMinimized) { - QtUiSettings s; - if(s.value("UseSystemTrayIcon").toBool() && s.value("MinimizeOnMinimize").toBool()) { - hideToTray(); - event->accept(); - return; - } - } - } - #ifdef Q_WS_WIN - else if(event->type() == QEvent::ActivationChange) + if(event->type() == QEvent::ActivationChange) dwTickCount = GetTickCount(); // needed for toggleMinimizedToTray() #endif - event->ignore(); + QMainWindow::changeEvent(event); } void MainWin::hideToTray() {