mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
- Fixed Qt4 warning when deleting options
This commit is contained in:
parent
3678aa4d23
commit
90879386d5
3 changed files with 6 additions and 3 deletions
|
@ -1119,8 +1119,10 @@ void GUI::configureSession(bool deleteOptions) {
|
|||
displayRSSTab(false);
|
||||
}
|
||||
// Clean up
|
||||
if(deleteOptions) {
|
||||
delete options;
|
||||
if(deleteOptions && options) {
|
||||
qDebug("Deleting options");
|
||||
//delete options;
|
||||
options->deleteLater();
|
||||
}
|
||||
qDebug("Session configured");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue