forked from qt-creator/qt-creator
Debugger: Fix debugger command line startup.
Protect against session changes at startup. Reviewed-by: hjk
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user