mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
- Fixed a memory leak in options
- Removed unneeded QTranslator object in options.
This commit is contained in:
@@ -545,6 +545,11 @@ void options_imp::on_applyButton_clicked(){
|
||||
emit status_changed(tr("Options were saved successfully."), false);
|
||||
}
|
||||
|
||||
void options_imp::closeEvent(QCloseEvent *e){
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
e->accept();
|
||||
}
|
||||
|
||||
void options_imp::on_cancelButton_clicked(){
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
reject();
|
||||
|
||||
Reference in New Issue
Block a user