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:
parent
ec5b48dfe3
commit
a449a3a7a3
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,7 @@ void RbUtilQt::downloadInfo()
|
||||||
daily = new HttpGet(this);
|
daily = new HttpGet(this);
|
||||||
connect(daily, SIGNAL(done(bool)), this, SLOT(downloadDone(bool)));
|
connect(daily, SIGNAL(done(bool)), this, SLOT(downloadDone(bool)));
|
||||||
connect(daily, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool)));
|
connect(daily, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool)));
|
||||||
|
connect(qApp, SIGNAL(lastWindowClosed()), daily, SLOT(abort()));
|
||||||
daily->setProxy(proxy());
|
daily->setProxy(proxy());
|
||||||
if(userSettings->value("defaults/offline").toBool())
|
if(userSettings->value("defaults/offline").toBool())
|
||||||
daily->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString());
|
daily->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString());
|
||||||
|
@ -154,6 +155,7 @@ void RbUtilQt::downloadDone(bool error)
|
||||||
bleeding = new HttpGet(this);
|
bleeding = new HttpGet(this);
|
||||||
connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool)));
|
connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool)));
|
||||||
connect(bleeding, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool)));
|
connect(bleeding, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool)));
|
||||||
|
connect(qApp, SIGNAL(lastWindowClosed()), daily, SLOT(abort()));
|
||||||
bleeding->setProxy(proxy());
|
bleeding->setProxy(proxy());
|
||||||
if(userSettings->value("defaults/offline").toBool())
|
if(userSettings->value("defaults/offline").toBool())
|
||||||
bleeding->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString());
|
bleeding->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString());
|
||||||
|
|
Loading…
Reference in a new issue