summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-04-21 04:32:22 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-04-24 15:00:36 (GMT)
commit66c0ddf7d1d5c9a7009f33da418d27a186651b92 (patch)
tree6f5f277223fef7797278ff1baafb7bad80aeb6db
parentfe726be565e3445e4cfaa6ec5eeabd1064bb280b (diff)
Ensure the confirmation dialog for closing window is visible to users
BUG: 163677 FIXED-IN: 4.8.3 (cherry picked from commit cf5ccf5f65fa490411a27f6a5ada271bdc188d3b)
-rw-r--r--src/MainWindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 3a51bd3..61ad76e 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -413,6 +413,12 @@ bool MainWindow::queryClose()
_viewManager->viewProperties().count() < 2)
return true;
+ // make sure the window is shown on current desktop and is not minimized
+ KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop());
+ if ( isMinimized() ) {
+ KWindowSystem::unminimizeWindow(winId(), true);
+ }
+
int result = KMessageBox::warningYesNoCancel(this,
i18n("You have multiple tabs in this window, "
"are you sure you want to quit?"),