Browse Source

- Search process is now stopped cleanly before exit to avoid error messages in console

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
950072c696
  1. 1
      Changelog
  2. 4
      src/GUI.cpp

1
Changelog

@ -20,6 +20,7 @@
- BUGFIX: Preventing GUI from freezing when deleting a download permanently - BUGFIX: Preventing GUI from freezing when deleting a download permanently
- BUGFIX: Fixed directory scanning (stop trying to download the same files several times) - BUGFIX: Fixed directory scanning (stop trying to download the same files several times)
- BUGFIX: Fixed bad loading of scan dir in option (widgets still disabled) - BUGFIX: Fixed bad loading of scan dir in option (widgets still disabled)
- BUGFIX: Threads are now stopped cleanly before their destruction
- I18N: Better internationalization thanks to dynamic text support - I18N: Better internationalization thanks to dynamic text support
- COSMETIC: Replaced OSD messages by Qt4.2 systray messages - COSMETIC: Replaced OSD messages by Qt4.2 systray messages

4
src/GUI.cpp

@ -261,9 +261,11 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
// Destructor // Destructor
GUI::~GUI(){ GUI::~GUI(){
qDebug("GUI destruction"); qDebug("GUI destruction");
searchProcess->kill();
searchProcess->waitForFinished();
delete searchProcess;
delete options; delete options;
delete checkConnect; delete checkConnect;
delete searchProcess;
delete refresher; delete refresher;
delete myTrayIcon; delete myTrayIcon;
delete myTrayIconMenu; delete myTrayIconMenu;

Loading…
Cancel
Save