changeset 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 0486da3ce13c
files ui/mainwindow.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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/