diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-29 22:22:24 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-29 20:59:11 -0700 |
commit | ac6a7ab24e087cc150a7eff0ff6e7e4f8c52ce9a (patch) | |
tree | 4aa3130a235a11f5fb6b39c1f791e643ae524a18 /qt-ui/locationinformation.cpp | |
parent | d6e61b74fc140ca5a6cb1de3c6b6435b3701aa5b (diff) | |
download | subsurface-ac6a7ab24e087cc150a7eff0ff6e7e4f8c52ce9a.tar.gz |
Update DiveLocationModel when thread finishes
This patch updates the DiveLocationModel when the
GeoLoockupInformationThread finishes, and also selects
the correct index for the displayed dive.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/locationinformation.cpp')
-rw-r--r-- | qt-ui/locationinformation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 1ba7fd402..657a6f3f5 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -28,7 +28,7 @@ LocationInformationWidget::LocationInformationWidget(QWidget *parent) : QGroupBo ui.diveSiteMessage->setText(tr("Dive site management")); ui.diveSiteMessage->addAction(closeAction); - ui.currentLocation->setModel(new LocationInformationModel()); + ui.currentLocation->setModel(LocationInformationModel::instance()); connect(ui.currentLocation, SIGNAL(currentIndexChanged(int)), this, SLOT(setCurrentDiveSite(int))); connect(this, SIGNAL(startFilterDiveSite(uint32_t)), MultiFilterSortModel::instance(), SLOT(startFilterDiveSite(uint32_t))); connect(this, SIGNAL(stopFilterDiveSite()), MultiFilterSortModel::instance(), SLOT(stopFilterDiveSite())); |