[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kfile
From: Rafael Fernández López <ereslibre () kde ! org>
Date: 2008-10-03 0:27:03
Message-ID: 1222993623.309431.25030.nullmailer () svn ! kde ! org
[Download RAW message or body]
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<QListView*>(itemView);
+ QListView *view = qobject_cast<QListView*>(itemView);
+ if (!view) {
+ return;
+ }
+
const bool leftChecked = actionCollection->action("decorationAtLeft")->isChecked();
if (leftChecked) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic