diff options
-rw-r--r-- | commands/command_edit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp index 89e10b000..02939ac6d 100644 --- a/commands/command_edit.cpp +++ b/commands/command_edit.cpp @@ -112,7 +112,11 @@ void EditBase<T>::undo() // Send signals. DiveField id = fieldId(); +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + emit diveListNotifier.divesChanged(QVector<dive *>(dives.begin(), dives.end()), id); +#else emit diveListNotifier.divesChanged(QVector<dive *>::fromStdVector(dives), id); +#endif setSelection(selectedDives, current); } @@ -679,7 +683,11 @@ void EditTagsBase::undo() // Send signals. DiveField id = fieldId(); +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + emit diveListNotifier.divesChanged(QVector<dive *>(dives.begin(), dives.end()), id); +#else emit diveListNotifier.divesChanged(QVector<dive *>::fromStdVector(dives), id); +#endif setSelection(selectedDives, current); } |