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
b15853e3
Commit
b15853e3
authored
Mar 11, 2010
by
Friedemann Kleint
Browse files
Debugger: Fix debugger command line startup.
Protect against session changes at startup. Reviewed-by: hjk
parent
cfbd8463
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggermanager.cpp
View file @
b15853e3
...
...
@@ -1239,8 +1239,12 @@ void DebuggerManager::sessionLoaded()
void
DebuggerManager
::
aboutToUnloadSession
()
{
if
(
d
->
m_engine
)
d
->
m_engine
->
shutdown
();
// Stop debugging the active project when switching sessions.
// Note that at startup, session switches may occur, which interfer
// with command-line debugging startup.
if
(
d
->
m_engine
&&
state
()
!=
DebuggerNotReady
&&
d
->
m_startParameters
->
startMode
==
StartInternal
)
d
->
m_engine
->
shutdown
();
}
void
DebuggerManager
::
aboutToSaveSession
()
...
...
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