Skip to content
GitLab
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
66c0ddf7
Commit
66c0ddf7
authored
Apr 21, 2012
by
Jekyll Wu
Browse files
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MainWindow.cpp
View file @
66c0ddf7
...
...
@@ -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?"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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