diff options
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 23 |
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; + } } |