From e5729ea1e89934d0fde5883d6f41b2126b7b39d6 Mon Sep 17 00:00:00 2001 From: Martin Sandsmark Date: Tue, 17 Dec 2013 16:26:39 +0100 Subject: [PATCH] Fix notifications when minimized. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index a4be9fd9..a7306b83 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -652,7 +652,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; -- 2.20.1