Fix Qt 4 build.

This commit is contained in:
Martin Rotter 2016-01-16 18:34:20 +01:00
parent 6bfbece28d
commit 896ba2c59a

View File

@ -206,7 +206,7 @@ void FormEditFeed::saveFeed() {
void FormEditFeed::addNewFeed() {
RootItem *parent = static_cast<RootItem*>(m_ui->m_cmbParentCategory->itemData(m_ui->m_cmbParentCategory->currentIndex()).value<void*>());
const TtRssServiceRoot *root = parent->kind() == RootItemKind::Category ?
TtRssServiceRoot *root = parent->kind() == RootItemKind::Category ?
qobject_cast<TtRssCategory*>(parent)->serviceRoot() :
qobject_cast<TtRssServiceRoot*>(parent);
const int category_id = parent->kind() == RootItemKind::ServiceRoot ?