summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-29 23:53:01 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-29 20:39:33 -0700
commitf9166e3c0e0a9479cf0fb9841a57fe92ac0a5716 (patch)
treec07c02a1cca00e7a0b6c760b8eaada4bd7eb5c4c /qt-ui/diveplanner.cpp
parente7f764b09056e3a1fecd09ccd011f28ea6f97791 (diff)
downloadsubsurface-f9166e3c0e0a9479cf0fb9841a57fe92ac0a5716.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
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);