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()
|
||||
|
||||
@@ -124,8 +124,6 @@ public:
|
||||
Utils::AspectContainer page5; // CDB
|
||||
Utils::AspectContainer page6; // CDB Paths
|
||||
|
||||
void writeSettings() const;
|
||||
|
||||
private:
|
||||
DebuggerSettings(const DebuggerSettings &) = delete;
|
||||
DebuggerSettings &operator=(const DebuggerSettings &) = delete;
|
||||
|
||||
@@ -583,12 +583,6 @@ public:
|
||||
|
||||
RunControl *attachToRunningProcess(Kit *kit, const ProcessInfo &process, bool contAfterAttach);
|
||||
|
||||
void writeSettings()
|
||||
{
|
||||
settings().writeSettings();
|
||||
// writeWindowSettings();
|
||||
}
|
||||
|
||||
void breakpointSetMarginActionTriggered(bool isMessageOnly, const ContextData &data)
|
||||
{
|
||||
QString message;
|
||||
@@ -1160,10 +1154,6 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
|
||||
// Connections
|
||||
//
|
||||
|
||||
// Core
|
||||
connect(ICore::instance(), &ICore::saveSettingsRequested,
|
||||
this, &DebuggerPluginPrivate::writeSettings);
|
||||
|
||||
// ProjectExplorer
|
||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::runActionsUpdated,
|
||||
this, &DebuggerPluginPrivate::updatePresetState);
|
||||
|
||||
Reference in New Issue
Block a user