diff --git a/src/services/tt-rss/gui/formeditfeed.cpp b/src/services/tt-rss/gui/formeditfeed.cpp index 656c04205..0a9530d84 100755 --- a/src/services/tt-rss/gui/formeditfeed.cpp +++ b/src/services/tt-rss/gui/formeditfeed.cpp @@ -206,7 +206,7 @@ void FormEditFeed::saveFeed() { void FormEditFeed::addNewFeed() { RootItem *parent = static_cast(m_ui->m_cmbParentCategory->itemData(m_ui->m_cmbParentCategory->currentIndex()).value()); - const TtRssServiceRoot *root = parent->kind() == RootItemKind::Category ? + TtRssServiceRoot *root = parent->kind() == RootItemKind::Category ? qobject_cast(parent)->serviceRoot() : qobject_cast(parent); const int category_id = parent->kind() == RootItemKind::ServiceRoot ?