summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index bd20a503a..16e424c21 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -229,7 +229,7 @@ void MainTab::setCurrentLocationIndex()
if (ds)
ui.location->setCurrentText(ds->name);
else
- ui.location->setCurrentText("");
+ ui.location->setCurrentIndex(-1);
}
}
@@ -491,7 +491,7 @@ void MainTab::updateDiveInfo(bool clear)
if (ds)
ui.location->setCurrentText(ds->name);
else
- ui.location->clear();
+ ui.location->setCurrentIndex(-1);
// Subsurface always uses "local time" as in "whatever was the local time at the location"
// so all time stamps have no time zone information and are in UTC
QDateTime localTime = QDateTime::fromTime_t(displayed_dive.when - gettimezoneoffset(displayed_dive.when));