aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-09 13:48:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-09 07:40:26 -0700
commitf2e23e7815bef678b78ba205c3014c0b97a811ba (patch)
treec5e4ff7f860843d549d2224cd1c1d19989b35cf7
parentccf916344b7f91934cf5fa2aaf949b786fe1f3c1 (diff)
downloadsubsurface-f2e23e7815bef678b78ba205c3014c0b97a811ba.tar.gz
Allow weight system name to be edited
Issue #272 lead to the introduction of a new private property of the ComboBoxDelegate class (editable). This new property was not correctly set when creating the weight system delegate. This corrects the (trivial) error, and now allows edit of the weight system name. Fixes: #392 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--desktop-widgets/modeldelegates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/modeldelegates.cpp b/desktop-widgets/modeldelegates.cpp
index d22e7cbb5..11ef5ffa5 100644
--- a/desktop-widgets/modeldelegates.cpp
+++ b/desktop-widgets/modeldelegates.cpp
@@ -377,7 +377,7 @@ void WSInfoDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, co
mymodel->passInData(IDX(WeightModel::WEIGHT), grams);
}
-WSInfoDelegate::WSInfoDelegate(QObject *parent) : ComboBoxDelegate(WSInfoModel::instance(), parent, false)
+WSInfoDelegate::WSInfoDelegate(QObject *parent) : ComboBoxDelegate(WSInfoModel::instance(), parent, true)
{
}