summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-09 12:45:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-09 12:45:55 -0700
commiteaed18ba40f158105d9f230c355ab451820d900b (patch)
tree2353cbfddaf8e8fbbb9284612945c31edb7f71d6 /qt-models
parent5de89e036dcb17d92c97abf7cf76973ac11b5ecd (diff)
downloadsubsurface-eaed18ba40f158105d9f230c355ab451820d900b.tar.gz
Fix fix for filters
Commit aa1446bed2e4 ("Make filters work again in master") makes filters work again for the desktop app, but breaks building Subsurface-mobile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/filtermodels.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/filtermodels.cpp b/qt-models/filtermodels.cpp
index 44b5daa61..a74bc3fae 100644
--- a/qt-models/filtermodels.cpp
+++ b/qt-models/filtermodels.cpp
@@ -2,8 +2,11 @@
#include "qt-models/models.h"
#include "core/display.h"
#include "qt-models/divetripmodel.h"
+
+#if !defined(SUBSURFACE_MOBILE)
#include "desktop-widgets/divelistview.h"
#include "desktop-widgets/mainwindow.h"
+#endif
#include <QDebug>
@@ -370,6 +373,7 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s
void MultiFilterSortModel::myInvalidate()
{
+#if !defined(SUBSURFACE_MOBILE)
int i;
struct dive *d;
DiveListView *dlv = MainWindow::instance()->dive_list();
@@ -410,6 +414,7 @@ void MultiFilterSortModel::myInvalidate()
if (curr_dive_site) {
dlv->expandAll();
}
+#endif
}
void MultiFilterSortModel::addFilterModel(MultiFilterInterface *model)