diff -r 16ed8d08d0b1 -r 478bc57ad291 emailuis/nmailui/src/nmsendserviceinterface.cpp --- a/emailuis/nmailui/src/nmsendserviceinterface.cpp Wed Aug 18 09:37:47 2010 +0300 +++ b/emailuis/nmailui/src/nmsendserviceinterface.cpp Thu Sep 02 20:15:00 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