diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index b7bb37d072..8ffa65e8fd 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -117,7 +117,8 @@ bool DolphinDetailsView::event(QEvent* event) QHeaderView* headerView = header(); headerView->setStretchLastSection(false); headerView->setResizeMode(QHeaderView::ResizeToContents); - headerView->setResizeMode(0, QHeaderView::Stretch); + headerView->setMinimumSectionSize(-1); + headerView->setDefaultSectionSize(viewport()->width()); // hide columns if this is indicated by the settings const DetailsModeSettings* settings = DolphinSettings::instance().detailsModeSettings();