diff ui/mainwindow.cpp @ 1146:5fdda2ad19fb

(issue132) Notfiy the downloader when the mainwindow is destroyed
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Sep 2014 11:31:15 +0200
parents a41338b18273
children 6ec64a30fd5f
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Thu Sep 18 11:09:34 2014 +0200
+++ b/ui/mainwindow.cpp	Thu Sep 18 11:31:15 2014 +0200
@@ -548,6 +548,7 @@
             this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode)));
     connect(downloader, SIGNAL(lastModifiedDate(const QDateTime&)),
         this, SLOT(setLastModifiedSWDate(const QDateTime&)));
+    connect(this, SIGNAL(destroyed(QObject*)), downloader, SLOT(quit));
     downloader->start();
 }
 

http://wald.intevation.org/projects/trustbridge/