mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
fixed ReadingListModel::isEditable
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user