mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: update filterData directly without copying
In FilterWidget2::updateFilter() a new FilterData object is generated and then copied onto the filterData member variable. Instead, modify filterData directly. This seems also more logical from a semantic point of view: Do we want to reset fields that were not set by the user? Contains trivial whitespace fix. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cc0c4ab2f1
commit
36fa27050c
3 changed files with 21 additions and 24 deletions
|
@ -51,7 +51,7 @@ slots:
|
|||
void stopFilterDiveSite();
|
||||
void filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector<int> &roles);
|
||||
void resetModel(DiveTripModelBase::Layout layout);
|
||||
void filterDataChanged(const FilterData& data);
|
||||
void filterDataChanged(const FilterData &data);
|
||||
|
||||
signals:
|
||||
void filterFinished();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue