summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 04:32:24 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 04:32:24 -0800
commit4619bfd9ca1d4ee6c32acd8776a4dd460dc3835f (patch)
treedff78cfee4ec880afa22c18afc299459c48de4f3 /qt-ui/maintab.cpp
parente8a4420c59300554ee29af29834b6dcde4f8139a (diff)
downloadsubsurface-4619bfd9ca1d4ee6c32acd8776a4dd460dc3835f.tar.gz
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>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}