* Enter or Ctrl+Enter is pressed in the URL navigator
* when the filter bar gets closed
BUG: 158232
svn path=/trunk/KDE/kdebase/apps/; revision=897739
Q_ASSERT(view != 0);
view->installEventFilter(this);
view->viewport()->installEventFilter(this);
+ setFocusProxy(view);
if (m_mode != ColumnView) {
// Give the view the ability to auto-expand its directories on hovering
// before deleting the view: Otherwise when having a split
// view the other view will get the focus and will request
// an activation (see DolphinView::eventFilter()).
+ setFocusProxy(0);
setFocus();
m_topLayout->removeWidget(view);
KonqFileItemCapabilities capabilities(KFileItemList() << item);
createNew->setEnabled(capabilities.supportsWriting());
}
+
+ if (isActive()) {
+ m_view->setFocus();
+ }
}
void DolphinViewContainer::showItemInfo(const KFileItem& item)
{
m_filterBar->hide();
m_filterBar->clear();
+ m_view->setFocus();
emit showFilterBarChanged(false);
}