diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-19 14:13:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-19 14:13:04 -0700 |
commit | 920a2069b07586b0855617c4099ea405cabb594e (patch) | |
tree | 261e0d9645ecd980709deec7d39eff50f9360e5a /qt-ui/maintab.cpp | |
parent | 9ffa37ab6fa26e950060e11323d78d7a3ecedcf1 (diff) | |
download | subsurface-920a2069b07586b0855617c4099ea405cabb594e.tar.gz |
Figure out if the user changed anything when editing
And mark the divelist changed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 0ded30da3..8267c1139 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -272,6 +272,14 @@ void MainTab::on_editAccept_clicked(bool edit) ui->diveNotesMessage->animatedHide(); ui->editAccept->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); } } |