From de786159ff46748d38c377e8d76d6df5a991fb5a Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Thu, 2 Sep 2021 13:23:19 -0400 Subject: [PATCH] set ItemIsEditable if the universe is tx --- platform/qt/universemodel.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/qt/universemodel.cpp b/platform/qt/universemodel.cpp index 4ea2be2..9a02c11 100644 --- a/platform/qt/universemodel.cpp +++ b/platform/qt/universemodel.cpp @@ -153,7 +153,12 @@ Qt::ItemFlags UniverseModel::flags(const QModelIndex &index) const if (slot > 512) return Qt::NoItemFlags; - return QAbstractItemModel::flags(index);// | Qt::ItemIsEditable; + auto f = QAbstractItemModel::flags(index); + + if (universe_->isEditable()) + f |= Qt::ItemIsEditable; + + return f; }