mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Merge pull request #7495 from silverqx/options-save-state-cancel
Options dialog save windows state in destructor
This commit is contained in:
commit
796cd674d7
@ -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()
|
||||
this->hide();
|
||||
saveOptions();
|
||||
}
|
||||
saveWindowState();
|
||||
|
||||
accept();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user