mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
divetripmodel: send shown changed signal on reset
Once the the mobile app uses the new models, this will be necessary to get the correct number of filtered dives after startup. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2e52f43d94
commit
f7cf3e6b16
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,7 @@ void DiveTripModelBase::clear()
|
|||
oldCurrent = nullptr;
|
||||
emit diveListNotifier.divesSelected({}, nullptr); // Inform profile, etc of changed selection
|
||||
endResetModel();
|
||||
emit diveListNotifier.numShownChanged();
|
||||
}
|
||||
|
||||
void DiveTripModelBase::reset()
|
||||
|
@ -389,6 +390,7 @@ void DiveTripModelBase::reset()
|
|||
populate();
|
||||
endResetModel();
|
||||
initSelection();
|
||||
emit diveListNotifier.numShownChanged();
|
||||
}
|
||||
|
||||
DiveTripModelBase::DiveTripModelBase(QObject *parent) : QAbstractItemModel(parent)
|
||||
|
|
Loading…
Add table
Reference in a new issue