summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/filterwidget2.cpp')
-rw-r--r--desktop-widgets/filterwidget2.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp
index 77cefa5a8..24a66513e 100644
--- a/desktop-widgets/filterwidget2.cpp
+++ b/desktop-widgets/filterwidget2.cpp
@@ -6,7 +6,9 @@
#include <QDoubleSpinBox>
-FilterWidget2::FilterWidget2(QWidget* parent) : QWidget(parent), ignoreSignal(false)
+FilterWidget2::FilterWidget2(QWidget* parent) :
+ QWidget(parent),
+ ignoreSignal(false)
{
ui.setupUi(this);
@@ -231,3 +233,8 @@ void FilterWidget2::countsChanged()
ui.filterText->setText(tr("%L1/%L2 shown").arg(MultiFilterSortModel::instance()->divesDisplayed)
.arg(dive_table.nr));
}
+
+bool FilterWidget2::isActive() const
+{
+ return filterData.validFilter;
+}