KDirLister *dirLister = qobject_cast<KDirModel*>(proxyModel->sourceModel())->dirLister();
connect(dirLister, SIGNAL(newItems(KFileItemList)), this, SLOT(resizeColumns()));
-
- // setFocus() must be called after m_extensionsFactory is initialised (see bug 240374).
- setFocus();
}
DolphinDetailsView::~DolphinDetailsView()
updateGridSize(view->showPreview(), 0);
m_extensionsFactory = new ViewExtensionsFactory(this, dolphinViewController, viewModeController);
-
- // setFocus() must be called after m_extensionsFactory is initialised (see bug 240374).
- setFocus();
}
DolphinIconsView::~DolphinIconsView()
if (view != 0) {
disconnectViewAccessor();
- // 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()).
- setFocusProxy(0);
- setFocus();
+ if (hasFocus()) {
+ // 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()).
+ setFocusProxy(0);
+ setFocus();
+ }
m_viewModeController->disconnect(view);