Fix notifications when minimized.
authorMartin Sandsmark <martin.sandsmark@kde.org>
Tue, 17 Dec 2013 15:26:39 +0000 (16:26 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 22 Dec 2013 23:32:07 +0000 (00:32 +0100)
QWidget::isVisible() just checks if the widget has been explicitly
hidden, not if it is minimized, covered, or whatnot.

Fixes #1240

src/qtui/mainwin.cpp

index a4be9fd..a7306b8 100644 (file)
@@ -652,7 +652,7 @@ void MainWin::removeBufferView(int bufferViewConfigId)
 
 void MainWin::bufferViewToggled(bool enabled)
 {
 
 void MainWin::bufferViewToggled(bool enabled)
 {
-    if (!enabled && !isVisible()) {
+    if (!enabled && !isMinimized()) {
         // hiding the mainwindow triggers a toggle of the bufferview (which pretty much sucks big time)
         // since this isn't our fault and we can't do anything about it, we suppress the resulting calls
         return;
         // hiding the mainwindow triggers a toggle of the bufferview (which pretty much sucks big time)
         // since this isn't our fault and we can't do anything about it, we suppress the resulting calls
         return;