- // If the .directory file does not exist or the timestamp is too old,
- // use the values from the global .directory file instead, which acts
- // as default view for new folders in this case.
- settings->setGlobalViewProps(true);
-
- ViewProperties defaultProps(url);
- setDirProperties(defaultProps);
-
- settings->setGlobalViewProps(false);
- m_changedProps = false;
+ if (isSearchUrl) {
+ setViewMode(DolphinView::DetailsView);
+ setAdditionalInfo(KFileItemDelegate::InformationList() << KFileItemDelegate::LocalPathOrUrl);
+ } else {
+ // The global view-properties act as default for directories without
+ // any view-property configuration
+ settings->setGlobalViewProps(true);
+
+ ViewProperties defaultProps(url);
+ setDirProperties(defaultProps);
+
+ settings->setGlobalViewProps(false);
+ m_changedProps = false;
+ }