mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Options dialog save windows state in destructor
This commit is contained in:
parent
de6ca29dcd
commit
2a6bd5de35
@ -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…
x
Reference in New Issue
Block a user