diff options
Diffstat (limited to 'qt-models/filtermodels.cpp')
-rw-r--r-- | qt-models/filtermodels.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp index b4aacf1bd..44b5daa61 100644 --- a/qt-models/filtermodels.cpp +++ b/qt-models/filtermodels.cpp @@ -2,6 +2,8 @@ #include "qt-models/models.h" #include "core/display.h" #include "qt-models/divetripmodel.h" +#include "desktop-widgets/divelistview.h" +#include "desktop-widgets/mainwindow.h" #include <QDebug> @@ -368,16 +370,9 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s void MultiFilterSortModel::myInvalidate() { - //WARNING: - //TODO: - // THIS CODE BELOW IS COMPLETELY BROKEN. I KNOW, I WROTE IT. - // REMOVE THIS, MAKE IT SANE. - // GRRRRR. - -#if 0 int i; struct dive *d; - // DiveListView *dlv = MainWindow::instance()->dive_list(); + DiveListView *dlv = MainWindow::instance()->dive_list(); divesDisplayed = 0; @@ -415,7 +410,6 @@ void MultiFilterSortModel::myInvalidate() if (curr_dive_site) { dlv->expandAll(); } -#endif } void MultiFilterSortModel::addFilterModel(MultiFilterInterface *model) |