From 3be1e5d0d1219694d20f2028beffd1ec1e03ef34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 11 Nov 2014 23:19:36 +0100 Subject: [PATCH] fixed ReadingListModel::isEditable --- YACReaderLibrary/db/reading_list_model.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/db/reading_list_model.cpp b/YACReaderLibrary/db/reading_list_model.cpp index a007f012..e59351f1 100644 --- a/YACReaderLibrary/db/reading_list_model.cpp +++ b/YACReaderLibrary/db/reading_list_model.cpp @@ -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(mi.internalPointer()); + return typeid(*item) != typeid(SpecialListItem); } QString ReadingListModel::name(const QModelIndex &mi)