Browse Source

Merge pull request #7495 from silverqx/options-save-state-cancel

Options dialog save windows state in destructor
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
796cd674d7
  1. 5
      src/gui/optionsdlg.cpp

5
src/gui/optionsdlg.cpp

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

Loading…
Cancel
Save