mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Make "delete" icon work properly in the "Reading" list
Only the "Favorites" special list was handled.
This commit is contained in:
@ -44,6 +44,15 @@ QIcon SpecialListItem::getIcon() const
|
||||
return QIcon();
|
||||
}
|
||||
|
||||
qulonglong SpecialListItem::getId() const
|
||||
{
|
||||
if (itemData.count() > Id) {
|
||||
return itemData.at(Id).toInt();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
ReadingListModel::TypeSpecialList SpecialListItem::getType() const
|
||||
{
|
||||
if (itemData.count() > Id) {
|
||||
|
Reference in New Issue
Block a user