Commit 0dd7ba2d authored by hjk's avatar hjk

debugger: save settings on saveSettingsRequested

parent fcec3a06
......@@ -785,6 +785,13 @@ public:
DebuggerEngine *currentEngine() const { return m_currentEngine; }
public slots:
void writeSettings()
{
m_debuggerSettings->writeSettings();
m_mainWindow->writeSettings();
GdbOptionsPage::writeGdbSettings();
}
void selectThread(int index)
{
currentEngine()->selectThread(index);
......@@ -3052,6 +3059,9 @@ void DebuggerPluginPrivate::extensionsInitialized()
// Connections
//
// Core
connect(core, SIGNAL(saveSettingsRequested()), SLOT(writeSettings()));
// TextEditor
connect(TextEditorSettings::instance(),
SIGNAL(fontSettingsChanged(TextEditor::FontSettings)),
......@@ -3177,9 +3187,6 @@ void DebuggerPluginPrivate::aboutToShutdown()
disconnect(sessionManager(),
SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
this, 0);
m_debuggerSettings->writeSettings();
m_mainWindow->writeSettings();
GdbOptionsPage::writeGdbSettings();
}
} // namespace Internal
......
......@@ -170,7 +170,6 @@ void GdbOptionsPage::readGdbSettings() /* static */
void GdbOptionsPage::writeGdbSettings() /* static */
{
// FIXME: This should actually get called in response to ICore::saveSettingsRequested()
if (!gdbMappingChanged)
return;
......
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