Catch SIGTERM to exit cleanly (e.g. computer shutdown)

This commit is contained in:
Christophe Dumez 2008-12-26 16:23:53 +00:00
parent dfb2046f82
commit 6a3dddd0cc
3 changed files with 24 additions and 8 deletions

View file

@ -244,6 +244,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
// Destructor
GUI::~GUI() {
qDebug("GUI destruction");
hide();
delete dlSpeedLbl;
delete upSpeedLbl;
delete ratioLbl;