From f9166e3c0e0a9479cf0fb9841a57fe92ac0a5716 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 29 May 2014 23:53:01 -0300 Subject: Do not offer an editor when double-clicking REMOVE on the planner. The planner would offer an text-editor if the user double clicked it's remove column. forbidding that. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 7091d4f40..bb00299b8 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -445,7 +445,7 @@ QVariant DivePlannerPointsModel::headerData(int section, Qt::Orientation orienta Qt::ItemFlags DivePlannerPointsModel::flags(const QModelIndex &index) const { - if (index.column() != DURATION) + if (index.column() != DURATION && index.column() != REMOVE) return QAbstractItemModel::flags(index) | Qt::ItemIsEditable; else return QAbstractItemModel::flags(index); -- cgit v1.2.3-70-g09d2