Browse Source

Options dialog save windows state in destructor

adaptive-webui-19844
silver 7 years ago
parent
commit
2a6bd5de35
No known key found for this signature in database
GPG Key ID: 7AF60D549724DEEF
  1. 5
      src/gui/optionsdlg.cpp

5
src/gui/optionsdlg.cpp

@ -421,6 +421,9 @@ void OptionsDialog::initializeLanguageCombo() @@ -421,6 +421,9 @@ void OptionsDialog::initializeLanguageCombo()
OptionsDialog::~OptionsDialog()
{
qDebug("-> destructing Options");
saveWindowState();
foreach (const QString &path, addedScanDirs)
ScanFoldersModel::instance()->removePath(path);
ScanFoldersModel::instance()->configure(); // reloads "removed" paths
@ -1211,7 +1214,7 @@ void OptionsDialog::on_buttonBox_accepted() @@ -1211,7 +1214,7 @@ void OptionsDialog::on_buttonBox_accepted()
this->hide();
saveOptions();
}
saveWindowState();
accept();
}

Loading…
Cancel
Save