forked from qt-creator/qt-creator
Debugger: Streamline settings access pattern
Change-Id: Ie73b8d9fa945ee9dcbab67177410cc782979c8ad Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -335,7 +335,7 @@ void BreakHandler::saveBreakpoints()
|
||||
map.insert(_("message"), data.message);
|
||||
list.append(map);
|
||||
}
|
||||
debuggerCore()->setSessionValue(QLatin1String("Breakpoints"), list);
|
||||
DebuggerCore::setSessionValue("Breakpoints", list);
|
||||
//qDebug() << "SAVED BREAKPOINTS" << this << list.size();
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ void BreakHandler::loadBreakpoints()
|
||||
{
|
||||
QTC_ASSERT(debuggerCore(), return);
|
||||
//qDebug() << "LOADING BREAKPOINTS...";
|
||||
QVariant value = debuggerCore()->sessionValue(QLatin1String("Breakpoints"));
|
||||
QVariant value = DebuggerCore::sessionValue("Breakpoints");
|
||||
QList<QVariant> list = value.toList();
|
||||
//clear();
|
||||
foreach (const QVariant &var, list) {
|
||||
|
||||
Reference in New Issue
Block a user