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
1ce92c0e
Commit
1ce92c0e
authored
Sep 29, 2009
by
hjk
Browse files
debugger: centralize view cleanup in the manager to setState(DebuggerNotReady)
parent
37add8b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggermanager.cpp
View file @
1ce92c0e
...
...
@@ -1027,11 +1027,10 @@ void DebuggerManager::cleanupViews()
void
DebuggerManager
::
exitDebugger
()
{
STATE_DEBUG
(
""
);
if
(
d
->
m_engine
)
// The engine will finally call setState(DebuggerNotReady) which
// in turn will handle the cleanup.
if
(
d
->
m_engine
&&
state
()
!=
DebuggerNotReady
)
d
->
m_engine
->
exitDebugger
();
cleanupViews
();
setState
(
DebuggerNotReady
);
}
DebuggerStartParametersPtr
DebuggerManager
::
startParameters
()
const
...
...
@@ -1139,19 +1138,13 @@ void DebuggerManager::executeDebuggerCommand(const QString &command)
void
DebuggerManager
::
sessionLoaded
()
{
cleanupViews
();
setState
(
DebuggerNotReady
);
setBusyCursor
(
false
);
loadSessionData
();
}
void
DebuggerManager
::
aboutToUnloadSession
()
{
cleanupViews
();
if
(
d
->
m_engine
)
d
->
m_engine
->
shutdown
();
setState
(
DebuggerNotReady
);
setBusyCursor
(
false
);
}
void
DebuggerManager
::
aboutToSaveSession
()
...
...
@@ -1626,6 +1619,7 @@ void DebuggerManager::setState(DebuggerState state)
if
(
d
->
m_state
==
DebuggerNotReady
)
{
setBusyCursor
(
false
);
cleanupViews
();
emit
debuggingFinished
();
}
...
...
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