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

@ -184,7 +184,7 @@ void RSSImp::on_newFeedButton_clicked() {
if (parent_item == m_feedList->stickyUnreadItem()) {
parent_item = 0;
} else {
if (m_feedList->isFolder(parent_item))
if (!m_feedList->isFolder(parent_item))
parent_item = parent_item->parent();
}
}