this, SLOT(slotShowPreviewChanged()));
- setFocus();
viewport()->installEventFilter(this);
connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)),
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()
connect(m_categoryDrawer, SIGNAL(actionRequested(int,QModelIndex)), this, SLOT(categoryDrawerActionRequested(int,QModelIndex)));
setCategoryDrawer(m_categoryDrawer);
- setFocus();
-
connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)),
this, SLOT(slotGlobalSettingsChanged(int)));
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()