Update the dive site location when editing

Simple.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-10-01 17:52:00 -03:00 committed by Dirk Hohndel
parent db97f33e13
commit 3548d11195
2 changed files with 8 additions and 5 deletions

View file

@ -1502,14 +1502,16 @@ void MainTab::on_location_diveSiteSelected()
}
}
updateDisplayedDiveSite();
}
void MainTab::on_diveTripLocation_textChanged(const QString& text)
{
if (currentTrip) {
free(displayedTrip.location);
displayedTrip.location = strdup(qPrintable(ui.location->text()));
markChangedWidget(ui.location);
return;
displayedTrip.location = strdup(qPrintable(text));
markChangedWidget(ui.diveTripLocation);
}
updateDisplayedDiveSite();
}
void MainTab::on_suit_textChanged(const QString &text)

View file

@ -72,6 +72,7 @@ slots:
void on_divemaster_textChanged();
void on_buddy_textChanged();
void on_suit_textChanged(const QString &text);
void on_diveTripLocation_textChanged(const QString& text);
void on_notes_textChanged();
void on_airtemp_textChanged(const QString &text);
void divetype_Changed(int);