BUG: 164468
svn path=/trunk/KDE/kdebase/apps/; revision=822367
{
QAbstractItemView* view = itemView();
if (view != 0) {
{
QAbstractItemView* view = itemView();
if (view != 0) {
+ // It's important to set the keyboard focus to the parent
+ // 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()).
+ setFocus();
+
m_topLayout->removeWidget(view);
view->close();
view->deleteLater();
m_topLayout->removeWidget(view);
view->close();
view->deleteLater();