aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-05 11:39:40 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-05 11:39:40 +0900
commit9dab88611757db54d2f534e96b840a42a914b255 (patch)
treea4199d1559fb802d1e113b9013259d39950ab8ef /qt-ui/maintab.cpp
parentc17e15d3152d79febdb369a6887e3420071e57c3 (diff)
downloadsubsurface-9dab88611757db54d2f534e96b840a42a914b255.tar.gz
Reload globe after dive location was modified
This way a change to the location name is immediately reflected in the map display. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 07e1d9749..b9b5d0ab7 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -11,6 +11,7 @@
#include "../statistics.h"
#include "divelistview.h"
#include "modeldelegates.h"
+#include "globe.h"
#include <QLabel>
#include <QDebug>
@@ -329,6 +330,8 @@ void MainTab::on_editAccept_clicked(bool edit)
notesBackup.visibility != ui->visibility->currentStars() ||
notesBackup.rating != ui->rating->currentStars())
mark_divelist_changed(TRUE);
+ if (notesBackup.location != ui->location->text())
+ mainWindow()->globe()->reload();
}
}