diff options
Diffstat (limited to 'desktop-widgets/command_edit.cpp')
-rw-r--r-- | desktop-widgets/command_edit.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop-widgets/command_edit.cpp b/desktop-widgets/command_edit.cpp index f39f9339d..aab3dc791 100644 --- a/desktop-widgets/command_edit.cpp +++ b/desktop-widgets/command_edit.cpp @@ -57,6 +57,8 @@ void EditBase<T>::undo() std::swap(old, value); + emit diveListNotifier.divesEdited(QVector<dive *>::fromStdVector(dives), fieldId()); + mark_divelist_changed(true); } @@ -90,4 +92,9 @@ QString EditNotes::fieldName() const return tr("notes"); } +DiveField EditNotes::fieldId() const +{ + return DiveField::NOTES; +} + } // namespace Command |