mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive list: update selection after clearing model
When clearing the model the selection is cleared. Send the according signal. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ecb517d496
commit
9f573df971
2 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,7 @@ signals:
|
|||
// Trip edited signal
|
||||
void tripChanged(dive_trip *trip, TripField field);
|
||||
|
||||
// Selection changes
|
||||
void divesSelected(const QVector<dive *> &dives, dive *current);
|
||||
|
||||
// Dive site signals. Add and delete events are sent per dive site and
|
||||
|
|
|
@ -376,6 +376,7 @@ void DiveTripModelBase::clear()
|
|||
{
|
||||
beginResetModel();
|
||||
clear_dive_file_data();
|
||||
emit diveListNotifier.divesSelected({}, nullptr); // Inform profile, etc of changed selection
|
||||
endResetModel();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue