Commit b1d9ea19 authored by Alexander Semke's avatar Alexander Semke
Browse files

Properly reset to the default values in the settings widgets.

parent 36a3606c
......@@ -71,7 +71,15 @@ void SettingsGeneralPage::applySettings() {
}
void SettingsGeneralPage::restoreDefaults() {
loadSettings();
ui.cbLoadOnStart->setCurrentIndex(0);
ui.cbInterface->setCurrentIndex(0);
ui.cbTabPosition->setCurrentIndex(0);
ui.cbMdiVisibility->setCurrentIndex(0);
ui.cbUnits->setCurrentIndex(0);
ui.chkAutoSave->setChecked(false);
ui.sbAutoSaveInterval->setValue(0);
ui.sbAutoSaveInterval->setValue(5);
ui.chkMemoryInfo->setChecked(true);
}
void SettingsGeneralPage::loadSettings() {
......
......@@ -77,7 +77,20 @@ void SettingsWorksheetPage::applySettings() {
}
void SettingsWorksheetPage::restoreDefaults() {
loadSettings();
m_cbThemes->setCurrentIndex(0);
ui.chkPresenterModeInteractive->setChecked(false);
ui.chkDoubleBuffering->setChecked(true);
int index = ui.cbTexEngine->findData(QLatin1String("xelatex"));
if (index == -1) {
index = ui.cbTexEngine->findData(QLatin1String("lualatex"));
if (index == -1) {
index = ui.cbTexEngine->findData(QLatin1String("pdflatex"));
if (index == -1)
index = ui.cbTexEngine->findData(QLatin1String("latex"));
}
}
ui.cbTexEngine->setCurrentIndex(index);
}
void SettingsWorksheetPage::loadSettings() {
......
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