Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
cf5ccf5f
Commit
cf5ccf5f
authored
Apr 21, 2012
by
Jekyll Wu
Browse files
Ensure the confirmation dialog for closing window is visible to users
FEATURE: 163677
FIXED-IN: 4.9.0
parent
5f3caaba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MainWindow.cpp
View file @
cf5ccf5f
...
...
@@ -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?"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment