Browse Source

Don't needlessly hide Options dialog

The dialog should only close after all operations are done, not before.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
8d73ab65b2
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 6
      src/gui/optionsdialog.cpp

6
src/gui/optionsdialog.cpp

@ -650,8 +650,6 @@ void OptionsDialog::saveOptions() @@ -650,8 +650,6 @@ void OptionsDialog::saveOptions()
auto *pref = Preferences::instance();
auto *session = BitTorrent::Session::instance();
m_applyButton->setEnabled(false);
// Load the translation
QString locale = getLocale();
if (pref->getLocale() != locale)
@ -1419,8 +1417,8 @@ void OptionsDialog::on_buttonBox_accepted() @@ -1419,8 +1417,8 @@ void OptionsDialog::on_buttonBox_accepted()
m_ui->tabSelection->setCurrentRow(TAB_WEBUI);
return;
}
m_applyButton->setEnabled(false);
this->hide();
saveOptions();
}
@ -1444,6 +1442,8 @@ void OptionsDialog::applySettings() @@ -1444,6 +1442,8 @@ void OptionsDialog::applySettings()
m_ui->tabSelection->setCurrentRow(TAB_WEBUI);
return;
}
m_applyButton->setEnabled(false);
saveOptions();
}

Loading…
Cancel
Save