mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Figure out if the user changed anything when editing
And mark the divelist changed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9ffa37ab6f
commit
920a2069b0
1 changed files with 8 additions and 0 deletions
|
@ -272,6 +272,14 @@ void MainTab::on_editAccept_clicked(bool edit)
|
||||||
ui->diveNotesMessage->animatedHide();
|
ui->diveNotesMessage->animatedHide();
|
||||||
ui->editAccept->hide();
|
ui->editAccept->hide();
|
||||||
ui->editReset->hide();
|
ui->editReset->hide();
|
||||||
|
/* now figure out if things have changed */
|
||||||
|
if (notesBackup.buddy != ui->buddy->text() ||
|
||||||
|
notesBackup.suit != ui->suit->text() ||
|
||||||
|
notesBackup.notes != ui->notes->toPlainText() ||
|
||||||
|
notesBackup.divemaster != ui->divemaster->text() ||
|
||||||
|
notesBackup.location != ui->location->text() ||
|
||||||
|
notesBackup.rating != ui->rating->currentStars())
|
||||||
|
mark_divelist_changed(TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue