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>
This commit is contained in:
Dirk Hohndel 2013-06-05 11:39:40 +09:00
parent c17e15d315
commit 9dab886117

View file

@ -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();
}
}