mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
fixed ReadingListModel::isEditable
This commit is contained in:
parent
73ac56d0b5
commit
3be1e5d0d1
@ -196,7 +196,8 @@ void ReadingListModel::addNewLabel(const QString &name, YACReader::LabelColors c
|
||||
|
||||
bool ReadingListModel::isEditable(const QModelIndex &mi)
|
||||
{
|
||||
return (mi.row() > specialLists.count());
|
||||
ListItem * item = static_cast<ListItem*>(mi.internalPointer());
|
||||
return typeid(*item) != typeid(SpecialListItem);
|
||||
}
|
||||
|
||||
QString ReadingListModel::name(const QModelIndex &mi)
|
||||
|
Loading…
x
Reference in New Issue
Block a user