mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Location management: reflect changes to a location's name
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d4b5854f82
commit
e201f0f2b1
1 changed files with 5 additions and 1 deletions
|
@ -233,8 +233,12 @@ void LocationInformationWidget::on_diveSiteDescription_textChanged(const QString
|
||||||
|
|
||||||
void LocationInformationWidget::on_diveSiteName_textChanged(const QString& text)
|
void LocationInformationWidget::on_diveSiteName_textChanged(const QString& text)
|
||||||
{
|
{
|
||||||
if (!same_string(qPrintable(text), currentDs->name))
|
if (!same_string(qPrintable(text), currentDs->name)) {
|
||||||
|
free(displayed_dive_site.name);
|
||||||
|
displayed_dive_site.name = copy_string(qPrintable(text));
|
||||||
markChangedWidget(ui.diveSiteName);
|
markChangedWidget(ui.diveSiteName);
|
||||||
|
emit coordinatesChanged();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocationInformationWidget::on_diveSiteNotes_textChanged()
|
void LocationInformationWidget::on_diveSiteNotes_textChanged()
|
||||||
|
|
Loading…
Add table
Reference in a new issue