summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-08-31 21:03:31 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 18:42:32 -0700
commitb52b95f3ec2e0dc730f991f25b7cefe30750cc72 (patch)
treeae95a28c4196f00fc89f56f965b081cdcd1a9ee7 /qt-ui
parenta3d6098c8ce7bee6841872153a85b573d583430d (diff)
downloadsubsurface-b52b95f3ec2e0dc730f991f25b7cefe30750cc72.tar.gz
Show the correct data on the Dive Site List
We where showing the UID, wich didn't made sense. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationInformation.ui3
-rw-r--r--qt-ui/locationinformation.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/locationInformation.ui b/qt-ui/locationInformation.ui
index 34cc2d56b..e7ab45ce0 100644
--- a/qt-ui/locationInformation.ui
+++ b/qt-ui/locationInformation.ui
@@ -98,6 +98,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="modelColumn">
+ <number>0</number>
+ </property>
</widget>
</item>
</layout>
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 4a4fff088..616a7147e 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -34,6 +34,7 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo
filter_model->setSourceModel(LocationInformationModel::instance());
filter_model->setFilterRow(filter_same_gps_cb);
ui.diveSiteListView->setModel(filter_model);
+ ui.diveSiteListView->setModelColumn(LocationInformationModel::NAME);
#ifndef NO_MARBLE
// Globe Management Code.