mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix fix for filters
Commit aa1446bed2
("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>
This commit is contained in:
parent
5de89e036d
commit
eaed18ba40
1 changed files with 5 additions and 0 deletions
|
@ -2,8 +2,11 @@
|
||||||
#include "qt-models/models.h"
|
#include "qt-models/models.h"
|
||||||
#include "core/display.h"
|
#include "core/display.h"
|
||||||
#include "qt-models/divetripmodel.h"
|
#include "qt-models/divetripmodel.h"
|
||||||
|
|
||||||
|
#if !defined(SUBSURFACE_MOBILE)
|
||||||
#include "desktop-widgets/divelistview.h"
|
#include "desktop-widgets/divelistview.h"
|
||||||
#include "desktop-widgets/mainwindow.h"
|
#include "desktop-widgets/mainwindow.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
@ -370,6 +373,7 @@ bool MultiFilterSortModel::filterAcceptsRow(int source_row, const QModelIndex &s
|
||||||
|
|
||||||
void MultiFilterSortModel::myInvalidate()
|
void MultiFilterSortModel::myInvalidate()
|
||||||
{
|
{
|
||||||
|
#if !defined(SUBSURFACE_MOBILE)
|
||||||
int i;
|
int i;
|
||||||
struct dive *d;
|
struct dive *d;
|
||||||
DiveListView *dlv = MainWindow::instance()->dive_list();
|
DiveListView *dlv = MainWindow::instance()->dive_list();
|
||||||
|
@ -410,6 +414,7 @@ void MultiFilterSortModel::myInvalidate()
|
||||||
if (curr_dive_site) {
|
if (curr_dive_site) {
|
||||||
dlv->expandAll();
|
dlv->expandAll();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiFilterSortModel::addFilterModel(MultiFilterInterface *model)
|
void MultiFilterSortModel::addFilterModel(MultiFilterInterface *model)
|
||||||
|
|
Loading…
Add table
Reference in a new issue