Fix possible crash when adding a new RSS stream

This commit is contained in:
Christophe Dumez
2012-07-11 20:10:15 +03:00
parent cc192d7d47
commit c40801ce99
3 changed files with 11 additions and 4 deletions

View File

@@ -258,15 +258,19 @@ bool RssFeed::parseRSS(QIODevice* device)
parseRSSChannel(xml);
found_channel = true;
break;
} else
} else {
qDebug() << "Skip rss item: " << xml.name();
xml.skipCurrentElement();
}
}
break;
} else
} else {
qDebug() << "Skip root item: " << xml.name();
xml.skipCurrentElement();
}
}
if (xml.error()) {
if (xml.hasError()) {
qWarning() << "Error parsing RSS document: " << xml.errorString();
}