diff --git a/retroshare-gui/src/gui/Posted/PostedPostsModel.cpp b/retroshare-gui/src/gui/Posted/PostedPostsModel.cpp index 403ce50be..ad960b8ef 100644 --- a/retroshare-gui/src/gui/Posted/PostedPostsModel.cpp +++ b/retroshare-gui/src/gui/Posted/PostedPostsModel.cpp @@ -275,14 +275,6 @@ QModelIndex RsPostedPostsModel::parent(const QModelIndex& index) const return QModelIndex(); // there's no hierarchy here. So nothing to do! } -Qt::ItemFlags RsPostedPostsModel::flags(const QModelIndex& index) const -{ - if (!index.isValid()) - return 0; - - return QAbstractItemModel::flags(index); -} - quintptr RsPostedPostsModel::getChildRef(quintptr ref,int index) const { if (index < 0) @@ -433,6 +425,14 @@ bool operator<(const RsPostedPost& p1,const RsPostedPost& p2) return p1.mMeta.mPublishTs > p2.mMeta.mPublishTs; } +Qt::ItemFlags RsPostedPostsModel::flags(const QModelIndex& index) const +{ + if (!index.isValid()) + return 0; + + return QAbstractItemModel::flags(index) | Qt::ItemIsEditable; +} + void RsPostedPostsModel::setPosts(const RsPostedGroup& group, std::vector& posts) { preMods();