From kde-commits Fri Oct 03 00:27:03 2008 From: =?utf-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Fri, 03 Oct 2008 00:27:03 +0000 To: kde-commits Subject: KDE/kdelibs/kfile Message-Id: <1222993623.309431.25030.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122299363203577 SVN commit 867178 by ereslibre: safer cast M +5 -1 kdiroperator.cpp --- trunk/KDE/kdelibs/kfile/kdiroperator.cpp #867177:867178 @@ -2379,8 +2379,12 @@ return; } - QListView *view = static_cast(itemView); + QListView *view = qobject_cast(itemView); + if (!view) { + return; + } + const bool leftChecked = actionCollection->action("decorationAtLeft")->isChecked(); if (leftChecked) {