m_active = true;
createView();
- reload();
-
- // For performance reasons applying the view properties should be done after updating
- // the directory-lister URL with reload(). Otherwise in combination with enabled
- // previews the creation of already obsolete directory items gets triggered.
applyViewProperties();
+ reload();
setActive(oldActivationState);
updateZoomLevel(oldZoomLevel);
m_viewModeController->setUrl(url); // emits urlChanged, which we forward
m_viewAccessor.prepareUrlChange(url);
+ applyViewProperties();
// When changing the URL there is no need to keep the version
// data of the previous URL.
connectViewAccessor();
loadDirectory(url);
- // For performance reasons applying the view properties should be done after updating
- // the directory-lister URL with loadDirectory(). Otherwise in combination with enabled
- // previews the creation of already obsolete directory items gets triggered.
- applyViewProperties();
-
if (hadSelection || hasSelection()) {
emitSelectionChangedSignal();
}
dialog->raise();
dialog->activateWindow();
}
+
+ // assure that the current index remains visible when KDirLister
+ // will notify the view about changed items
+ m_assureVisibleCurrentIndex = true;
}
void DolphinView::trashSelectedItems()
return;
}
+ m_selectedItems = selectedItems();
+
const KUrl viewPropsUrl = rootUrl();
ViewProperties props(viewPropsUrl);
props.setShowHiddenFiles(show);
return QWidget::eventFilter(watched, event);
}
+void DolphinView::showEvent(QShowEvent* event)
+{
+ QWidget::showEvent(event);
+ if (!event->spontaneous()) {
+ loadDirectory(url());
+ }
+}
+
void DolphinView::activate()
{
setActive(true);
default:
Q_ASSERT(false);
}
+
+ KDirLister* lister = dirLister();
+ if (lister) {
+ lister->setMainWindow(parent->window());
+ }
}
void DolphinView::ViewAccessor::deleteView()