DolphinViewContainer* view = activeViewContainer();
if (view->url() == url) {
+ view->clearFilterBar(); // Fixes bug 259382.
+
// We can end up here if the user clicked a device in the Places Panel
// which had been unmounted earlier, see https://bugs.kde.org/show_bug.cgi?id=161385.
reloadView();
// Initialize the main view
m_view = new DolphinView(url, this);
connect(m_view, &DolphinView::urlChanged,
- m_filterBar, &FilterBar::slotUrlChanged);
+ m_filterBar, &FilterBar::clearIfUnlocked);
connect(m_view, &DolphinView::urlChanged,
m_messageWidget, &KMessageWidget::hide);
// m_urlNavigator stays in sync with m_view's location changes and
Q_EMIT showFilterBarChanged(false);
}
+void DolphinViewContainer::clearFilterBar()
+{
+ m_filterBar->clearIfUnlocked();
+}
+
void DolphinViewContainer::setNameFilter(const QString& nameFilter)
{
m_view->hideToolTip(ToolTipManager::HideBehavior::Instantly);
/** 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);