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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-19 04:32:24 -08:00
parent e8a4420c59
commit 4619bfd9ca

View file

@ -745,8 +745,8 @@ void MainTab::on_location_textChanged(const QString& text)
} }
} }
EDIT_SELECTED_DIVES( EDIT_TEXT(mydive->location, text) ); EDIT_SELECTED_DIVES( EDIT_TEXT(mydive->location, text) );
mainWindow()->globe()->repopulateLabels();
} }
markChangedWidget(ui.location); markChangedWidget(ui.location);
} }