From 9dab88611757db54d2f534e96b840a42a914b255 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 5 Jun 2013 11:39:40 +0900 Subject: [PATCH] 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 --- qt-ui/maintab.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 #include @@ -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(); } }