diff --git a/src/gui/formcategorydetails.cpp b/src/gui/formcategorydetails.cpp index 25fec2977..a2262ba21 100644 --- a/src/gui/formcategorydetails.cpp +++ b/src/gui/formcategorydetails.cpp @@ -64,7 +64,10 @@ void FormCategoryDetails::loadCategories(const QList categ FeedsModelRootItem *root_item) { m_ui->m_cmbParentCategory->addItem(root_item->icon(), root_item->title(), - root_item->id()); + QVariant::fromValue((void*) root_item)); + // pro ziskani root_item static_cast(itemData(i).value()) + // a stejnÄ› dole ve foreachi + foreach (FeedsModelCategory *category, categories) { m_ui->m_cmbParentCategory->addItem(category->data(FDS_MODEL_TITLE_INDEX,