mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
db97f33e13
commit
3548d11195
2 changed files with 8 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue