diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 8bb2892ad..b960ebb03 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -240,6 +240,8 @@ void MainTab::setCurrentLocationIndex() void MainTab::showDiveSiteSimpleEdit() { + if (ui.location->text().isEmpty()) + return; SimpleDiveSiteEditDialog dlg(this); dlg.exec(); if (dlg.changed_dive_site) { |