filter: fix trip header bug

With commit 5962f00679, a well known problem was introduced.
Incorrect width setting for the spanning trip lines. And as there
is even a specific functon for that, just call this.

The reason the mentioned commit introduces this, is that
invalidate() causes layoutChanged signals, and invalidateFilter()
does not.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-12-27 10:23:37 +01:00
parent 522b922d2a
commit 2a58be6649

View file

@ -441,6 +441,7 @@ void MultiFilterSortModel::myInvalidate()
divesDisplayed = 0;
invalidateFilter();
MainWindow::instance()->dive_list()->fixMessyQtModelBehaviour();
// first make sure the trips are no longer shown as selected
// (but without updating the selection state of the dives... this just cleans