summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lakshman <acrlakshman@gmail.com>2014-04-01 17:41:20 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-02 10:16:06 -0700
commitb629905ec5c099cb83eafff8c0de1e5e5793f563 (patch)
tree7c629f378eba51c6cf5defd7015a19ea4d5f347a
parentc6ceab4fec20e51fcc3e04c2220d80ba5853f05f (diff)
downloadsubsurface-b629905ec5c099cb83eafff8c0de1e5e5793f563.tar.gz
Make compute waypoints content uneditable
Currently user can edit content in compute waypoints table (in PLAN mode), ofcourse this does not trigger any calculations in the code, but user cannot see the content he needs to see after edit. This patch makes the content uneditable. Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 a7d5ee7c6..135c21175 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -115,7 +115,7 @@ QVariant DivePlannerDisplay::headerData(int section, Qt::Orientation orientation
Qt::ItemFlags DivePlannerDisplay::flags(const QModelIndex &index) const
{
- return QAbstractItemModel::flags(index) | Qt::ItemIsEditable;
+ return QAbstractItemModel::flags(index);
}
int DivePlannerDisplay::rowCount(const QModelIndex &parent) const