From 78d4a4ce3643a1bfce06ac809ab951e692d11314 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 18 Nov 2019 11:34:24 +0100 Subject: Filter: don't reload filter after reloading dive list The hidden_by_filter items are set on reload of the dive list. No point in reloading the filter again. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 676fbce87..cf46e6ec8 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -69,7 +69,6 @@ #include "qt-models/cylindermodel.h" #include "qt-models/divepicturemodel.h" #include "qt-models/diveplannermodel.h" -#include "qt-models/filtermodels.h" #include "qt-models/tankinfomodel.h" #include "qt-models/weightsysteminfomodel.h" #include "qt-models/yearlystatisticsmodel.h" @@ -423,7 +422,6 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) void MainWindow::recreateDiveList() { diveList->reload(); - DiveTripModelBase::instance()->recalculateFilter(); } void MainWindow::configureToolbar() -- cgit v1.2.3-70-g09d2