forked from qt-creator/qt-creator
Debugger: Simplify code path leading to .writeSettings()
Change-Id: Iaea1159305507e10adf2b448a774e2b528eaef80 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "gdb/gdbsettings.h"
|
||||
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -370,11 +371,10 @@ DebuggerSettings::DebuggerSettings() :
|
||||
});
|
||||
|
||||
all.readSettings();
|
||||
}
|
||||
|
||||
void DebuggerSettings::writeSettings() const
|
||||
{
|
||||
all.writeSettings();
|
||||
QObject::connect(Core::ICore::instance(), &Core::ICore::saveSettingsRequested,
|
||||
&all, &AspectContainer::writeSettings);
|
||||
|
||||
}
|
||||
|
||||
QString DebuggerSettings::dump()
|
||||
|
||||
Reference in New Issue
Block a user