From 3b1d79484dcbdbabbb4375be1726e74ab88de32d Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 16 Jan 2018 11:23:33 -0500 Subject: [PATCH] 2018-01-16 Fred Gleason * Fixed a bug in rdlogedit(1) that broke the 'Clear' button. --- ChangeLog | 2 ++ lib/rdlogfilter.cpp | 9 ++++++++- lib/rdlogfilter.h | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9926bb04..3496d972 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16591,3 +16591,5 @@ 2018-01-12 Fred Gleason * Updated 'NEWS'. * Incremented the package version to 2.18.2int02. +2018-01-16 Fred Gleason + * Fixed a bug in rdlogedit(1) that broke the 'Clear' button. diff --git a/lib/rdlogfilter.cpp b/lib/rdlogfilter.cpp index 9b6b1181..11427f77 100644 --- a/lib/rdlogfilter.cpp +++ b/lib/rdlogfilter.cpp @@ -95,7 +95,7 @@ RDLogFilter::RDLogFilter(RDLogFilter::FilterMode mode,RDUser *user, filter_filter_label->setBuddy(filter_filter_edit); connect(filter_filter_edit,SIGNAL(textChanged(const QString &)), this,SLOT(filterChangedData(const QString &))); - connect(filter_clear_button,SIGNAL(clicked()),this,SLOT(filterChangedData())); + connect(filter_clear_button,SIGNAL(clicked()),this,SLOT(filterClearedData())); // // Show Recent @@ -192,6 +192,13 @@ void RDLogFilter::filterChangedData() } +void RDLogFilter::filterClearedData() +{ + filter_filter_edit->clear(); + filterChangedData(); +} + + void RDLogFilter::serviceChangedData(int n) { emit filterChanged(whereSql()); diff --git a/lib/rdlogfilter.h b/lib/rdlogfilter.h index 6e6dc9fa..57be947a 100644 --- a/lib/rdlogfilter.h +++ b/lib/rdlogfilter.h @@ -50,6 +50,7 @@ class RDLogFilter : public QWidget private slots: void filterChangedData(const QString &str); void filterChangedData(); + void filterClearedData(); void serviceChangedData(int n); protected: