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() {
// Async deletion of Bittorrent session as early as possible // Async deletion of Bittorrent session as early as possible
// in order to speed up exit // in order to speed up exit
session_proxy sp = BTSession->asyncDeletion(); session_proxy sp = BTSession->asyncDeletion();
// Some saving
properties->saveSettings();
disconnect(tabs, SIGNAL(currentChanged(int)), this, SLOT(tab_changed(int)));
// Delete other GUI objects // Delete other GUI objects
delete status_bar; delete status_bar;
delete transferList; delete transferList;

1
src/propertieswidget.cpp

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

Loading…
Cancel
Save