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
This commit is contained in:
Dominik Riebeling 2007-09-03 09:46:15 +00:00
parent ec5b48dfe3
commit a449a3a7a3

View file

@ -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());