diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-05 11:39:40 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-05 11:39:40 +0900 |
commit | 9dab88611757db54d2f534e96b840a42a914b255 (patch) | |
tree | a4199d1559fb802d1e113b9013259d39950ab8ef /qt-ui/maintab.cpp | |
parent | c17e15d3152d79febdb369a6887e3420071e57c3 (diff) | |
download | subsurface-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.cpp | 3 |
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(); } } |