diff options
Diffstat (limited to 'commands/command_edit.cpp')
-rw-r--r-- | commands/command_edit.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp index ae97594e4..96678996c 100644 --- a/commands/command_edit.cpp +++ b/commands/command_edit.cpp @@ -155,12 +155,7 @@ 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 - + emit diveListNotifier.divesChanged(stdToQt<dive *>(dives), id); setSelection(selectedDives, current); } @@ -551,11 +546,7 @@ 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 + emit diveListNotifier.divesChanged(stdToQt<dive *>(dives), id); setSelection(selectedDives, current); } |