From 2a58be66498907c972fbd863174a30fa8235f172 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 27 Dec 2017 10:23:37 +0100 Subject: filter: fix trip header bug With commit 5962f00679fae555, 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 --- qt-models/filtermodels.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index 793b707ec..925931480 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -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 -- cgit v1.2.3-70-g09d2