Browse Source

- Fixed Qt4 warning when deleting options

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
90879386d5
  1. 1
      Changelog
  2. 6
      src/GUI.cpp
  3. 2
      src/GUI.h

1
Changelog

@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
- BUGFIX: Fixed several memory leaks
- BUGFIX: WebUI is now working with IE7
- BUGFIX: Fixed spacing problem in toolbar when toggling its visibility
- BUGFIX: Fixed some compilation and Qt4 warnings
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v1.2.1
- BUGFIX: Fixed possible crash when deleting a torrent permanently

6
src/GUI.cpp

@ -1119,8 +1119,10 @@ void GUI::configureSession(bool deleteOptions) { @@ -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");
}

2
src/GUI.h

@ -64,7 +64,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ @@ -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;

Loading…
Cancel
Save