diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-09-03 09:46:15 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2007-09-03 09:46:15 +0000 |
commit | a449a3a7a325852b9c505815d4c966bfc36f4866 (patch) | |
tree | 27374301fbe102fb905a2a9370ee7aad7777ea10 /rbutil | |
parent | ec5b48dfe3d8f877ad38435591f439d903079ffd (diff) |
make sure closing the application aborts the remaining HttpGet objects. Should fix the crash upon exit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14591 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 196e079696..b3bd36bd25 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp @@ -128,6 +128,7 @@ void RbUtilQt::downloadInfo() daily = new HttpGet(this); connect(daily, SIGNAL(done(bool)), this, SLOT(downloadDone(bool))); connect(daily, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool))); + connect(qApp, SIGNAL(lastWindowClosed()), daily, SLOT(abort())); daily->setProxy(proxy()); if(userSettings->value("defaults/offline").toBool()) daily->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString()); @@ -154,6 +155,7 @@ void RbUtilQt::downloadDone(bool error) bleeding = new HttpGet(this); connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool))); connect(bleeding, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool))); + connect(qApp, SIGNAL(lastWindowClosed()), daily, SLOT(abort())); bleeding->setProxy(proxy()); if(userSettings->value("defaults/offline").toBool()) bleeding->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString()); |