diff -r ae34e1715e21 -r a8c646b56683 emailuis/nmailui/src/nmsendserviceinterface.cpp --- a/emailuis/nmailui/src/nmsendserviceinterface.cpp Thu Aug 05 21:09:09 2010 +0300 +++ b/emailuis/nmailui/src/nmsendserviceinterface.cpp Mon Aug 23 23:32:31 2010 +0300 @@ -375,6 +375,10 @@ new NmMailboxSelectionDialog(mUiEngine.mailboxListModel()); } + if (!XQServiceUtil::isEmbedded()) { + XQServiceUtil::toBackground(false); + } + connect(mSelectionDialog, SIGNAL(selectionDialogClosed(NmId&)), this, SLOT(selectionDialogClosed(NmId&))); mSelectionDialog->open(); @@ -400,6 +404,11 @@ } if (mStartParam) { + // Make sure the NMail application is in the foreground + if (!XQServiceUtil::isEmbedded()) { + XQServiceUtil::toBackground(false); + } + mStartParam->setMailboxId(mailboxId); mApplication->enterNmUiView(mStartParam); mStartParam = NULL; // ownership passed