Commit 66c0ddf7 authored by Jekyll Wu's avatar Jekyll Wu

Ensure the confirmation dialog for closing window is visible to users

BUG: 163677
FIXED-IN: 4.8.3
(cherry picked from commit cf5ccf5f)
parent fe726be5
......@@ -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?"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment