aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert Helling <helling@atdotde.de>2014-01-22 15:21:01 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-22 08:35:57 -0800
commitf22428b345524a75527320bc9664ca2257ebe590 (patch)
treefc9673d15ffafbe11e1c44724677a073b609a7b5
parentb6a30dcdd3225e67e7eed7ead68c919c36243ffc (diff)
downloadsubsurface-f22428b345524a75527320bc9664ca2257ebe590.tar.gz
Allow manually added dives to have their location changed
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 fc836f40b..0a66a227e 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -888,7 +888,7 @@ void MainTab::on_location_textChanged(const QString& text)
// we are editing a trip
dive_trip_t *currentTrip = *mainWindow()->dive_list()->selectedTrips().begin();
EDIT_TEXT(currentTrip->location, text);
- } else if (editMode == DIVE || editMode == ADD) {
+ } else if (editMode == DIVE || editMode == ADD || editMode == MANUALLY_ADDED_DIVE) {
if (!ui.coordinates->isModified() ||
ui.coordinates->text().trimmed().isEmpty()) {
struct dive* dive;