summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-04-27 21:33:51 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-04-27 21:33:51 +0000
commit4e747f1c5ccc98d99c24354c6fef0d6abf87d220 (patch)
tree8f644faf558d015beb86576c40b9422ad8675472 /rbutil/rbutilqt
parenta357c202a2295a7fb43e6f441acdd1f60b64647b (diff)
If downloading the build information didn't work don't try to populate the version information.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index abb42c85ed..11dbe153e5 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -223,16 +223,19 @@ void RbUtilQt::downloadDone(bool error)
void RbUtilQt::downloadBleedingDone(bool error)
{
- if(error) qDebug() << "network error:" << bleeding->error();
-
- bleedingInfo.open();
- QSettings info(bleedingInfo.fileName(), QSettings::IniFormat, this);
- bleedingInfo.close();
- versmap.insert("bleed_rev", info.value("bleeding/rev").toString());
- versmap.insert("bleed_date", info.value("bleeding/timestamp").toString());
- qDebug() << "versmap =" << versmap;
-
- m_gotInfo = true;
+ if(error) {
+ qDebug() << "network error:" << bleeding->error();
+ }
+ else {
+ bleedingInfo.open();
+ QSettings info(bleedingInfo.fileName(), QSettings::IniFormat, this);
+ bleedingInfo.close();
+ versmap.insert("bleed_rev", info.value("bleeding/rev").toString());
+ versmap.insert("bleed_date", info.value("bleeding/timestamp").toString());
+ qDebug() << "versmap =" << versmap;
+
+ m_gotInfo = true;
+ }
}