[PATCH] (issue132) Notfiy the downloader when the mainwindow is destroyed
Wald Commits
scm-commit at wald.intevation.org
Thu Sep 18 11:31:31 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411032675 -7200
# Node ID 5fdda2ad19fbd1bee737d7bfff2c1b54e93cb07e
# Parent a41338b18273518d0f566edf58b294dea5cfb0a2
(issue132) Notfiy the downloader when the mainwindow is destroyed
diff -r a41338b18273 -r 5fdda2ad19fb ui/mainwindow.cpp
--- 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();
}
More information about the Trustbridge-commits
mailing list