┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/filterbar
diff options
context:
space:
mode:
authorSerg Podtynnyi <[email protected]>2023-01-25 00:04:54 +0700
committerSerg Podtynnyi <[email protected]>2023-01-25 18:37:55 +0700
commit96323e049c700fcd63d93f00c5b92a8ddfe0cb27 (patch)
tree82ae2424cd60dfe61d495e7418bac2bf3e8ba280 /src/filterbar
parent2ae4c7aafcd1906326a5e801df113af59d67dac8 (diff)
Clear filter bar on clicking current folder in places
Reset the filter bar when user clicks on the current folder in places list, also rename slot function to be more clear. BUG: 259382
Diffstat (limited to 'src/filterbar')
-rw-r--r--src/filterbar/filterbar.cpp2
-rw-r--r--src/filterbar/filterbar.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/filterbar/filterbar.cpp b/src/filterbar/filterbar.cpp
index 6d8b1e485..c1fb344b1 100644
--- a/src/filterbar/filterbar.cpp
+++ b/src/filterbar/filterbar.cpp
@@ -74,7 +74,7 @@ void FilterBar::clear()
m_filterInput->clear();
}
-void FilterBar::slotUrlChanged()
+void FilterBar::clearIfUnlocked()
{
if (!m_lockButton || !(m_lockButton->isChecked())) {
clear();
diff --git a/src/filterbar/filterbar.h b/src/filterbar/filterbar.h
index d6ca402af..73b1c566e 100644
--- a/src/filterbar/filterbar.h
+++ b/src/filterbar/filterbar.h
@@ -39,7 +39,7 @@ public Q_SLOTS:
/** Clears the input field. */
void clear();
/** Clears the input field if the "lock button" is disabled. */
- void slotUrlChanged();
+ void clearIfUnlocked();
/** The input field is cleared also if the "lock button" is released. */
void slotToggleLockButton(bool checked);