Browse Source

- Fixed possible crash on exit introduced by previous commit (tweaks to speed up exit)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
5d1d26b285
  1. 3
      src/GUI.cpp
  2. 1
      src/propertieswidget.cpp

3
src/GUI.cpp

@ -199,6 +199,9 @@ GUI::~GUI() { @@ -199,6 +199,9 @@ GUI::~GUI() {
// Async deletion of Bittorrent session as early as possible
// in order to speed up exit
session_proxy sp = BTSession->asyncDeletion();
// Some saving
properties->saveSettings();
disconnect(tabs, SIGNAL(currentChanged(int)), this, SLOT(tab_changed(int)));
// Delete other GUI objects
delete status_bar;
delete transferList;

1
src/propertieswidget.cpp

@ -118,7 +118,6 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, GUI* main_window, TransferLi @@ -118,7 +118,6 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, GUI* main_window, TransferLi
}
PropertiesWidget::~PropertiesWidget() {
saveSettings();
delete refreshTimer;
delete trackerList;
delete peersList;

Loading…
Cancel
Save