summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationinformation.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 6dc77c571..699b80d47 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -45,11 +45,6 @@ void LocationInformationWidget::setCurrentDiveSite(int dive_nr)
void LocationInformationWidget::setLocationId(uint32_t uuid)
{
- LocationInformationModel *m = (LocationInformationModel*) ui.currentLocation->model();
- if (m->rowCount() == 0) {
- m->update();
- }
-
currentDs = get_dive_site_by_uuid(uuid);
if(!currentDs)
return;
@@ -138,7 +133,8 @@ void LocationInformationWidget::rejectChanges()
void LocationInformationWidget::showEvent(QShowEvent *ev)
{
- emit startFilterDiveSite(displayed_dive_site.uuid);
+ if (displayed_dive_site.uuid)
+ emit startFilterDiveSite(displayed_dive_site.uuid);
ui.diveSiteMessage->setCloseButtonVisible(false);
QGroupBox::showEvent(ev);
}