From kde-commits Mon May 31 21:12:10 2010 From: =?utf-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 31 May 2010 21:12:10 +0000 To: kde-commits Subject: KDE/kdebase/apps/plasma/applets/folderview Message-Id: <20100531211210.A4F80AC8C6 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127533993900932 SVN commit 1132999 by fredrik: Really fix the crash when changing preview settings and the applet is on the panel. FIXED-IN: 4.4.5 BUG: 239995 M +2 -2 folderview.cpp --- trunk/KDE/kdebase/apps/plasma/applets/folderview/folderview.cpp #1132998:1132999 @@ -769,13 +769,13 @@ if (needReload) { //Manually save and restore the icon positions if we need it QStringList iconPositionsData; - if (preserveIconPositions) { + if (preserveIconPositions && m_iconView) { iconPositionsData = m_iconView->iconPositionsData(); } m_dirModel->dirLister()->openUrl(m_url); - if (preserveIconPositions) { + if (preserveIconPositions && m_iconView) { m_iconView->setIconPositionsData(iconPositionsData); } // So the KFileItemActions will be recreated for the new URL.