Fix crash when adding folderview in the panel

BUG: 241285


svn path=/trunk/KDE/kdebase/apps/; revision=1136853
This commit is contained in:
Nicolas Lécureuil 2010-06-10 22:53:02 +00:00
parent 2328e7e775
commit 35596f75c3

View file

@ -883,7 +883,9 @@ void FolderView::updateListViewState()
m_listView->setDrawShadows(m_drawShadows);
m_listView->setIconSize(iconSize());
m_listView->setWordWrap(m_numTextLines > 1);
m_iconView->setTextLineCount(m_numTextLines);
if ( m_iconView ) {
m_iconView->setTextLineCount(m_numTextLines);
}
}
void FolderView::updateIconViewState()