diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-29 23:53:01 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-29 20:39:33 -0700 |
commit | f9166e3c0e0a9479cf0fb9841a57fe92ac0a5716 (patch) | |
tree | c07c02a1cca00e7a0b6c760b8eaada4bd7eb5c4c /qt-ui/diveplanner.cpp | |
parent | e7f764b09056e3a1fecd09ccd011f28ea6f97791 (diff) | |
download | subsurface-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.cpp | 2 |
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); |