diff -r f83bd4ae1fe3 -r 10eaf342f539 emailuis/nmailui/src/nmmessagelistview.cpp --- a/emailuis/nmailui/src/nmmessagelistview.cpp Thu Jun 24 14:32:18 2010 +0300 +++ b/emailuis/nmailui/src/nmmessagelistview.cpp Tue Jun 29 17:12:28 2010 +0300 @@ -92,13 +92,16 @@ // Use document loader to load the view bool ok(false); setObjectName(QString(NMUI_MESSAGE_LIST_VIEW)); + QObjectList objectList; + objectList.append(this); // Pass the view to documentloader. Document loader uses this view // when docml is parsed, instead of creating new view. if (mDocumentLoader) { + mDocumentLoader->setObjectTree(objectList); mWidgetList = mDocumentLoader->load(NMUI_MESSAGE_LIST_VIEW_XML, &ok); } - if (ok == true && mWidgetList.count()) { + if (ok) { // Get message list widget mMessageListWidget = qobject_cast (mDocumentLoader->findWidget(NMUI_MESSAGE_LIST_TREE_LIST));