emailuis/nmhswidget/src/nmhswidget.cpp
changeset 74 6c59112cfd31
parent 68 83cc6bae1de8
child 76 38bf5461e270
--- a/emailuis/nmhswidget/src/nmhswidget.cpp	Wed Sep 15 17:47:19 2010 +0300
+++ b/emailuis/nmhswidget/src/nmhswidget.cpp	Thu Sep 30 11:43:07 2010 +0300
@@ -156,9 +156,9 @@
         mContentContainer = static_cast<HbWidget*> (loader.findWidget(KNmHsWidgetContentContainer));
         mEmptySpaceContainer = static_cast<HbWidget*> (loader.findWidget(KNmHsWidgetEmptySpaceContainer));
         mNoMailsLabel = static_cast<HbLabel*> (loader.findWidget(KNmHsWidgetNoMailsLabel));
-        mListView = static_cast<HbListView*> (loader.findWidget("mailListView"));
+        mListView = static_cast<HbListView*> (loader.findWidget(KNmHsWidgetMailListView));
         if (!mMainContainer || !mWidgetContainer || !mContentContainer 
-                || !mEmptySpaceContainer || !mNoMailsLabel ) {
+                || !mEmptySpaceContainer || !mNoMailsLabel || !mListView) {
             //something failed in documentloader, no point to continue
             NM_ERROR(1,"NmHsWidget::loadDocML fail @ containers or label");
             ok = false;
@@ -318,8 +318,10 @@
                 ,mTitleRow, SLOT( updateAccountName(const QString&) ) );
 
 	    //Get signals about user actions
+        //Qt::QueuedConnection used to improve ui responsiveness 
 	    connect(mTitleRow, SIGNAL( mailboxLaunchTriggered() )
-	            ,mEngine, SLOT( launchMailAppInboxView() ) );
+	            ,mEngine, SLOT( launchMailAppInboxView() ), Qt::QueuedConnection);
+	    
 	    connect(mTitleRow, SIGNAL( expandCollapseButtonPressed() )
 	            ,this, SLOT( handleExpandCollapseEvent() ) );