Fix notifications when minimized. 50/head
authorMartin Sandsmark <martin.sandsmark@kde.org>
Tue, 17 Dec 2013 15:26:39 +0000 (16:26 +0100)
committerMartin T. H. Sandsmark <martin.sandsmark@nov.com>
Wed, 18 Dec 2013 11:52:59 +0000 (12:52 +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 5460a34..9019e24 100644 (file)
@@ -657,7 +657,7 @@ void MainWin::removeBufferView(int bufferViewConfigId)
 
 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;