diff options
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphindetailsview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/dolphindetailsview.cpp b/src/views/dolphindetailsview.cpp index 2d0d522ac..83460163c 100644 --- a/src/views/dolphindetailsview.cpp +++ b/src/views/dolphindetailsview.cpp @@ -299,7 +299,10 @@ QRect DolphinDetailsView::visualRect(const QModelIndex& index) const const KFileItem item = m_dolphinViewController->itemForIndex(index); if (!item.isNull()) { const int width = DolphinFileItemDelegate::nameColumnWidth(item.text(), viewOptions()); - rect.setWidth(width); + + if (width < rect.width()) { + rect.setWidth(width); + } } return rect; |
