diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 23:49:05 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 23:50:31 -0800 |
commit | f81e2c111d9c563a78e62c3bae64bec07c052ec0 (patch) | |
tree | 2d343699fb50e26b969c4dead21e8a10ff6f7b8f /qt-ui/maintab.cpp | |
parent | 6820b13bd58ee382a21215e84427dfd690857dd6 (diff) | |
download | subsurface-f81e2c111d9c563a78e62c3bae64bec07c052ec0.tar.gz |
When updating the dive site name, show this on the maintab
If we accept a change on the dive site management screen, it needs to be
reflected on the Dive notes tab right away.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 86a8965f5..b78280d7a 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -395,6 +395,11 @@ bool MainTab::isEditing() return editMode != NONE; } +void MainTab::showLocation() +{ + ui.location->setText(get_dive_location(&displayed_dive)); +} + void MainTab::updateDiveInfo(bool clear) { // don't execute this while adding / planning a dive |