Commit 9f029d7a authored by Daniel Teske's avatar Daniel Teske

Fix Breakpoint storing in session

Task-number: QTCREATORBUG-9253

Change-Id: Idf517286394796e516115009789e6ff7df527c91
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 4255ec2d
......@@ -1161,14 +1161,6 @@ void BreakHandler::saveSessionData()
}
void BreakHandler::loadSessionData()
{
beginResetModel();
m_storage.clear();
endResetModel();
loadBreakpoints();
}
void BreakHandler::removeSessionData()
{
beginResetModel();
Iterator it = m_storage.begin(), et = m_storage.end();
......@@ -1176,6 +1168,7 @@ void BreakHandler::removeSessionData()
it->destroyMarker();
m_storage.clear();
endResetModel();
loadBreakpoints();
}
void BreakHandler::breakByFunction(const QString &functionName)
......
......@@ -61,7 +61,6 @@ public:
void loadSessionData();
void saveSessionData();
void removeSessionData();
QAbstractItemModel *model() { return this; }
......
......@@ -2478,7 +2478,6 @@ void DebuggerPluginPrivate::sessionLoaded()
void DebuggerPluginPrivate::aboutToUnloadSession()
{
m_breakHandler->removeSessionData();
m_toolTipManager->sessionAboutToChange();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment