Commit 1356a349 authored by Kai Koehne's avatar Kai Koehne
Browse files

Debugger: Initialize default layout for both QML and QML/CPP



Change-Id: Ib52c1664f0273d573bed28b8640d77e5292d40e3
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent fa2a91a8
...@@ -555,18 +555,15 @@ void DebuggerMainWindow::readSettings() ...@@ -555,18 +555,15 @@ void DebuggerMainWindow::readSettings()
settings->endGroup(); settings->endGroup();
// Reset initial settings when there are none yet. // Reset initial settings when there are none yet.
if (d->isQmlActive()) { if (d->m_dockWidgetActiveStateQmlCpp.isEmpty()) {
if (d->m_dockWidgetActiveStateQmlCpp.isEmpty()) { d->m_activeDebugLanguages = DebuggerLanguage(QmlLanguage|CppLanguage);
d->m_activeDebugLanguages = DebuggerLanguage(QmlLanguage|CppLanguage); d->setSimpleDockWidgetArrangement();
d->setSimpleDockWidgetArrangement(); d->m_dockWidgetActiveStateCpp = saveSettings();
d->m_dockWidgetActiveStateCpp = saveSettings(); }
} if (d->m_dockWidgetActiveStateCpp.isEmpty()) {
} else { d->m_activeDebugLanguages = CppLanguage;
if (d->m_dockWidgetActiveStateCpp.isEmpty()) { d->setSimpleDockWidgetArrangement();
d->m_activeDebugLanguages = CppLanguage; d->m_dockWidgetActiveStateCpp = saveSettings();
d->setSimpleDockWidgetArrangement();
d->m_dockWidgetActiveStateCpp = saveSettings();
}
} }
writeSettings(); writeSettings();
} }
......
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