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
Marco Bubke
flatpak-qt-creator
Commits
15629b03
Commit
15629b03
authored
Jul 20, 2010
by
hjk
Browse files
debugger: fix message when trying to shut down with a finished debugger
parent
04ad5619
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerplugin.cpp
View file @
15629b03
...
...
@@ -2744,21 +2744,35 @@ bool DebuggerListener::coreAboutToClose()
DebuggerPlugin
*
plugin
=
DebuggerPlugin
::
instance
();
if
(
!
plugin
)
return
true
;
// FIXME: Iterate over all running debuggers.
// Ask to terminate the session.
bool
cleanTermination
=
false
;
switch
(
plugin
->
state
())
{
case
DebuggerNotReady
:
return
true
;
case
EngineSetupOk
:
// Most importantly, terminating a running
case
EngineSetupFailed
:
// debuggee can cause problems.
case
DebuggerFinished
:
case
InferiorUnrunnable
:
return
true
;
case
EngineSetupRequested
:
case
EngineSetupOk
:
case
EngineSetupFailed
:
case
InferiorSetupRequested
:
case
InferiorSetupFailed
:
case
EngineRunRequested
:
case
InferiorRunRequested
:
case
InferiorRunOk
:
case
InferiorStopRequested
:
case
InferiorStopOk
:
case
InferiorShutdownRequested
:
case
EngineShutdownRequested
:
case
InferiorShutdownOk
:
cleanTermination
=
true
;
break
;
default:
break
;
case
InferiorShutdownFailed
:
case
InferiorStopFailed
:
case
EngineRunFailed
:
case
InferiorRunFailed
:
case
EngineShutdownOk
:
case
EngineShutdownFailed
:
return
false
;
}
const
QString
question
=
cleanTermination
?
...
...
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