comparison 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
comparison
equal deleted inserted replaced
1145:a41338b18273 1146:5fdda2ad19fb
546 connect(downloader, SIGNAL(finished()), downloader, SLOT(deleteLater())); 546 connect(downloader, SIGNAL(finished()), downloader, SLOT(deleteLater()));
547 connect(downloader, SIGNAL(error(const QString &, SSLConnection::ErrorCode)), 547 connect(downloader, SIGNAL(error(const QString &, SSLConnection::ErrorCode)),
548 this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode))); 548 this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode)));
549 connect(downloader, SIGNAL(lastModifiedDate(const QDateTime&)), 549 connect(downloader, SIGNAL(lastModifiedDate(const QDateTime&)),
550 this, SLOT(setLastModifiedSWDate(const QDateTime&))); 550 this, SLOT(setLastModifiedSWDate(const QDateTime&)));
551 connect(this, SIGNAL(destroyed(QObject*)), downloader, SLOT(quit));
551 downloader->start(); 552 downloader->start();
552 } 553 }
553 554
554 void MainWindow::setLastModifiedSWDate(const QDateTime &date) 555 void MainWindow::setLastModifiedSWDate(const QDateTime &date)
555 { 556 {

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