┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/views/dolphindetailsview.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/views/dolphindetailsview.cpp b/src/views/dolphindetailsview.cpp
index 3b197115e..2d0d522ac 100644
--- a/src/views/dolphindetailsview.cpp
+++ b/src/views/dolphindetailsview.cpp
@@ -675,8 +675,12 @@ KFileItemDelegate::Information DolphinDetailsView::infoForColumn(int columnIndex
void DolphinDetailsView::adjustMaximumSizeForEditing(const QModelIndex& index)
{
- // Make sure that the full width of the "Name" column is available for "Rename Inline"
- m_extensionsFactory->fileItemDelegate()->setMaximumSize(QTreeView::visualRect(index).size());
+ // Make sure that the full width of the "Name" column is available for "Rename Inline".
+ // Before we do that, we have to check if m_extensionsFactory has been initialised because
+ // it is possible that we end up here before the constructor is finished (see bug 257035)
+ if (m_extensionsFactory) {
+ m_extensionsFactory->fileItemDelegate()->setMaximumSize(QTreeView::visualRect(index).size());
+ }
}
#include "dolphindetailsview.moc"