Skip to content
Snippets Groups Projects
Commit adab5f0e authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

Debugger UI: create initial settings for mainwindow

parent 65e79d0d
No related branches found
No related tags found
No related merge requests found
...@@ -667,6 +667,16 @@ void DebuggerUISwitcher::readSettings() ...@@ -667,6 +667,16 @@ void DebuggerUISwitcher::readSettings()
d->m_dockWidgetActiveStateQmlCpp.insert(key, settings->value(key)); d->m_dockWidgetActiveStateQmlCpp.insert(key, settings->value(key));
} }
settings->endGroup(); settings->endGroup();
// reset initial settings when there are none yet
if (d->m_dockWidgetActiveStateCpp.isEmpty() || d->m_dockWidgetActiveStateQmlCpp.isEmpty()) {
DebuggerLanguages langs = d->m_activeDebugLanguages;
d->m_activeDebugLanguages = QmlLanguage;
resetDebuggerLayout();
d->m_activeDebugLanguages = CppLanguage;
resetDebuggerLayout();
d->m_activeDebugLanguages = langs;
}
} }
void DebuggerUISwitcher::initialize() void DebuggerUISwitcher::initialize()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment