Commit cf5ccf5f authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Ensure the confirmation dialog for closing window is visible to users

FEATURE: 163677
FIXED-IN: 4.9.0
parent 5f3caaba
......@@ -515,6 +515,12 @@ bool MainWindow::queryClose()
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,
i18ncp("@info", "There are %1 tab open in this window. "
"Do you still want to quit?",
......
Supports Markdown
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