diff options
Diffstat (limited to 'desktop-widgets/command_edit.cpp')
-rw-r--r-- | desktop-widgets/command_edit.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop-widgets/command_edit.cpp b/desktop-widgets/command_edit.cpp index 5112043d2..df22552e7 100644 --- a/desktop-widgets/command_edit.cpp +++ b/desktop-widgets/command_edit.cpp @@ -99,8 +99,7 @@ void EditBase<T>::undo() DiveField id = fieldId(); emit diveListNotifier.divesChanged(QVector<dive *>::fromStdVector(dives), id); - if (setSelection(selectedDives, current)) - emit diveListNotifier.selectionChanged(); // If the selection changed -> tell the frontend + setSelection(selectedDives, current); } // We have to manually instantiate the constructors of the EditBase class, @@ -539,8 +538,7 @@ void EditTagsBase::undo() DiveField id = fieldId(); emit diveListNotifier.divesChanged(QVector<dive *>::fromStdVector(dives), id); - if (setSelection(selectedDives, current)) - emit diveListNotifier.selectionChanged(); // If the selection changed -> tell the frontend + setSelection(selectedDives, current); } // Undo and redo do the same as just the stored value is exchanged |