From 958f1871f1b7296d0352cfbf3ee91e4c1dcc39ab Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sun, 12 May 2013 09:30:20 +0200 Subject: [PATCH] Fix unit test failure The recent commit 022b564831e2295ee3bb6e53ece53191b40d894a, which added a few source files to kitemlistcontrollertest, caused a crash in that test - an assert was hit because now a different virtual method was called in one place (KStandardItemListView::initializeItemListWidget()), and qobject_cast could not cast the 'item', which is of type KFileItemListWidget, to its base class KStandardItemListWidget. Adding the source file kfileitemlistwidget.cpp fixes this. CCMAIL: ps_ml@gmx.de --- dolphin/src/tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/dolphin/src/tests/CMakeLists.txt b/dolphin/src/tests/CMakeLists.txt index 1e1a161ff4..84c2e5ae51 100644 --- a/dolphin/src/tests/CMakeLists.txt +++ b/dolphin/src/tests/CMakeLists.txt @@ -18,6 +18,7 @@ set(kitemlistcontrollertest_SRCS testdir.cpp ../kitemviews/kfileitemmodel.cpp ../kitemviews/kfileitemlistview.cpp + ../kitemviews/kfileitemlistwidget.cpp ../kitemviews/kitemmodelbase.cpp ../kitemviews/kitemlistview.cpp ../kitemviews/kitemlistcontainer.cpp