svn path=/trunk/KDE/kdebase/apps/; revision=
1210699
// be restored after reloading the directory
m_selectedItems = selectedItems();
+ const bool hasFocus = m_viewAccessor.itemView()->hasFocus();
deleteView();
const KUrl viewPropsUrl = rootUrl();
props.setViewMode(m_mode);
createView();
+ if (hasFocus) {
+ m_viewAccessor.itemView()->setFocus();
+ }
+
// the file item delegate has been recreated, apply the current
// additional information manually
const KFileItemDelegate::InformationList infoList = props.additionalInfo();