mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Don't needlessly hide Options dialog
The dialog should only close after all operations are done, not before.
This commit is contained in:
@@ -650,8 +650,6 @@ void OptionsDialog::saveOptions()
|
|||||||
auto *pref = Preferences::instance();
|
auto *pref = Preferences::instance();
|
||||||
auto *session = BitTorrent::Session::instance();
|
auto *session = BitTorrent::Session::instance();
|
||||||
|
|
||||||
m_applyButton->setEnabled(false);
|
|
||||||
|
|
||||||
// Load the translation
|
// Load the translation
|
||||||
QString locale = getLocale();
|
QString locale = getLocale();
|
||||||
if (pref->getLocale() != locale)
|
if (pref->getLocale() != locale)
|
||||||
@@ -1419,8 +1417,8 @@ void OptionsDialog::on_buttonBox_accepted()
|
|||||||
m_ui->tabSelection->setCurrentRow(TAB_WEBUI);
|
m_ui->tabSelection->setCurrentRow(TAB_WEBUI);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_applyButton->setEnabled(false);
|
m_applyButton->setEnabled(false);
|
||||||
this->hide();
|
|
||||||
saveOptions();
|
saveOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1444,6 +1442,8 @@ void OptionsDialog::applySettings()
|
|||||||
m_ui->tabSelection->setCurrentRow(TAB_WEBUI);
|
m_ui->tabSelection->setCurrentRow(TAB_WEBUI);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_applyButton->setEnabled(false);
|
||||||
saveOptions();
|
saveOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user