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
Marco Bubke
flatpak-qt-creator
Commits
3945b967
Commit
3945b967
authored
Oct 27, 2009
by
Oswald Buddenhagen
Browse files
improve termination confirmation dialog
- default to yes - better message - give it a parent
parent
a461c6e1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerplugin.cpp
View file @
3945b967
...
...
@@ -249,11 +249,11 @@ bool DebuggerListener::coreAboutToClose()
tr
(
"A debugging session is still in progress. Would you like to terminate it?"
)
:
tr
(
"A debugging session is still in progress. Terminating the session in the current"
" state (%1) can leave the target in an inconsistent state."
" Would you like to terminate it?"
)
" Would you
still
like to terminate it?"
)
.
arg
(
QLatin1String
(
DebuggerManager
::
stateName
(
mgr
->
state
())));
QMessageBox
::
StandardButton
answer
=
QMessageBox
::
question
(
0
,
title
,
question
,
QMessageBox
::
Yes
|
QMessageBox
::
No
,
QMessageBox
::
No
);
if
(
answer
=
=
QMessageBox
::
No
)
QMessageBox
::
StandardButton
answer
=
QMessageBox
::
question
(
mgr
->
mainWindow
()
,
title
,
question
,
QMessageBox
::
Yes
|
QMessageBox
::
No
,
QMessageBox
::
Yes
);
if
(
answer
!
=
QMessageBox
::
Yes
)
return
false
;
mgr
->
exitDebugger
();
QCoreApplication
::
processEvents
(
QEventLoop
::
ExcludeUserInputEvents
);
...
...
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