X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=37d89d344b97bd6d38c7af911c9e914945e76b57;hp=c7d1f8b7e44127a45281c015fd73b54d3e4873c5;hb=31538db7fa7cd59fd077eccd80d8adfb1be6e80a;hpb=172c8f1cfa164852bda7f0112fed2b0fa52c902f diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index c7d1f8b7..37d89d34 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -798,23 +798,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() {