mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive list: remove forceSort parameter from DiveListView::reload()
DiveListView::reload() was called for full reset of the dive list and for changing the view (tree vs. lis) in DiveListView::headerClicked(). Since the latter does sorting by itself, a parameter "forceSort" was introduced, which defaulted to true, but was set to false by DiveListView::headerClicked(). To remove complexity, simply let DiveListView::headerClicked() set the view by itself and remove tha parameter. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ade0d8e758
commit
6fb3a499e6
3 changed files with 5 additions and 7 deletions
|
@ -25,7 +25,7 @@ public:
|
|||
void mouseDoubleClickEvent(QMouseEvent * event);
|
||||
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
void reload(DiveTripModel::Layout layout, bool forceSort = true);
|
||||
void reload(DiveTripModel::Layout layout);
|
||||
bool eventFilter(QObject *, QEvent *);
|
||||
void unselectDives();
|
||||
void clearTripSelection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue