mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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)
|
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)
|
QString ReadingListModel::name(const QModelIndex &mi)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user