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
1d5fadb1
Commit
1d5fadb1
authored
Dec 01, 2010
by
hjk
Browse files
debugger: switch to an existing engine if a new one fails to start
Task-number: QTCREATORBUG-2912
parent
7c35a577
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggerplugin.cpp
View file @
1d5fadb1
...
...
@@ -3240,9 +3240,15 @@ void DebuggerPluginPrivate::runControlStarted(DebuggerRunControl *runControl)
void
DebuggerPluginPrivate
::
runControlFinished
(
DebuggerRunControl
*
runControl
)
{
m_snapshotHandler
->
removeSnapshot
(
runControl
);
disconnectEngine
();
if
(
boolSetting
(
SwitchModeOnExit
)
&&
m_snapshotHandler
->
size
()
==
0
)
activatePreviousMode
();
if
(
m_snapshotHandler
->
size
()
==
0
)
{
// Last engine quits.
disconnectEngine
();
if
(
boolSetting
(
SwitchModeOnExit
))
activatePreviousMode
();
}
else
{
// Connect to some existing engine.
m_snapshotHandler
->
activateSnapshot
(
0
);
}
}
void
DebuggerPluginPrivate
::
remoteCommand
(
const
QStringList
&
options
,
...
...
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