1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2009-04-27 21:33:51 +00:00
parent a357c202a2
commit 4e747f1c5c

View file

@ -223,16 +223,19 @@ void RbUtilQt::downloadDone(bool error)
void RbUtilQt::downloadBleedingDone(bool error) void RbUtilQt::downloadBleedingDone(bool error)
{ {
if(error) qDebug() << "network error:" << bleeding->error(); 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;
bleedingInfo.open(); m_gotInfo = true;
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;
} }