mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
- Fixed Qt4 warning when deleting options
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
||||
QList<QPair<QTorrentHandle,QString> > unauthenticated_trackers;
|
||||
// GUI related
|
||||
QTabWidget *tabs;
|
||||
options_imp *options;
|
||||
QPointer<options_imp> options;
|
||||
QSystemTrayIcon *myTrayIcon;
|
||||
QPointer<QTimer> systrayCreator;
|
||||
QMenu *myTrayIconMenu;
|
||||
|
||||
Reference in New Issue
Block a user