From 4619bfd9ca1d4ee6c32acd8776a4dd460dc3835f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Nov 2013 04:32:24 -0800 Subject: [PATCH] Immediately update the dive flag label when editing location text This seems like a much nicer user experience. Editing a location's name is immediately reflected on the globe label, the moment it happens. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index a1acfb52d..16c0a1f14 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -745,8 +745,8 @@ void MainTab::on_location_textChanged(const QString& text) } } EDIT_SELECTED_DIVES( EDIT_TEXT(mydive->location, text) ); + mainWindow()->globe()->repopulateLabels(); } - markChangedWidget(ui.location); }