diff options
Diffstat (limited to 'commands/command_divelist.cpp')
-rw-r--r-- | commands/command_divelist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp index 9943651eb..4fabac9fc 100644 --- a/commands/command_divelist.cpp +++ b/commands/command_divelist.cpp @@ -8,6 +8,7 @@ #include "core/subsurface-qt/DiveListNotifier.h" #include "qt-models/filtermodels.h" #include "../profile-widget/profilewidget2.h" +#include "core/divefilter.h" #include <array> @@ -68,7 +69,7 @@ dive *DiveListBase::addDive(DiveToAdd &d) dive *res = d.dive.release(); // Give up ownership of dive // Set the filter flag according to current filter settings - bool show = MultiFilterSortModel::instance()->showDive(res); + bool show = DiveFilter::instance()->showDive(res); res->hidden_by_filter = !show; if (show) ++shown_dives; |