1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Fixes special settings not being saved.

This commit is contained in:
PT_Dreamer 2012-09-12 21:57:49 +01:00
parent d4cd0a9f89
commit abbf858123
2 changed files with 10 additions and 4 deletions

View File

@ -317,7 +317,10 @@ void MainWindow::extensionsInitialized()
qDebug() << "Load default config from resource "<<filename;
}
qs->beginGroup("General");
loadStyleSheet(qs->value("StyleSheet","none").toString());
m_config_description=qs->value("Description","none").toString();
m_config_details=qs->value("Details","none").toString();
m_config_stylesheet=qs->value("StyleSheet","none").toString();
loadStyleSheet(m_config_stylesheet);
qs->endGroup();
m_uavGadgetInstanceManager = new UAVGadgetInstanceManager(this);
m_uavGadgetInstanceManager->readSettings(qs);
@ -1275,9 +1278,9 @@ void MainWindow::saveSettings(QSettings* qs)
m_actionManager->saveSettings(qs);
m_generalSettings->saveSettings(qs);
qs->beginGroup("General");
qs->setValue("Description",m_settings->value("Description","None"));
qs->setValue("Details",m_settings->value("Details","None"));
qs->setValue("StyleSheet",m_settings->value("StyleSheet","default"));
qs->setValue("Description",m_config_description);
qs->setValue("Details",m_config_details);
qs->setValue("StyleSheet",m_config_stylesheet);
qs->endGroup();
}

View File

@ -219,6 +219,9 @@ private:
QAction *m_removeAllSplitsAction;
QAction *m_gotoOtherSplitAction;
QString m_config_description;
QString m_config_details;
QString m_config_stylesheet;
#ifdef Q_WS_MAC
QAction *m_minimizeAction;
QAction *m_zoomAction;