mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e7f764b090
commit
f9166e3c0e
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ QVariant DivePlannerPointsModel::headerData(int section, Qt::Orientation orienta
|
||||||
|
|
||||||
Qt::ItemFlags DivePlannerPointsModel::flags(const QModelIndex &index) const
|
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;
|
return QAbstractItemModel::flags(index) | Qt::ItemIsEditable;
|
||||||
else
|
else
|
||||||
return QAbstractItemModel::flags(index);
|
return QAbstractItemModel::flags(index);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue