equal
deleted
inserted
replaced
252 note.setTimeout(HbMessageBox::NoTimeout); |
252 note.setTimeout(HbMessageBox::NoTimeout); |
253 note.show(); |
253 note.show(); |
254 cancelService(); |
254 cancelService(); |
255 } |
255 } |
256 else { // count > 0 |
256 else { // count > 0 |
257 // Make sure the NMail application is in the foreground. |
|
258 XQServiceUtil::toBackground(false); |
|
259 if (mainWindow) { |
257 if (mainWindow) { |
260 mainWindow->show(); |
258 mainWindow->show(); |
261 } |
259 } |
262 |
260 |
263 mStartParam = new NmUiStartParam( |
261 mStartParam = new NmUiStartParam( |
285 else { // count > 1 |
283 else { // count > 1 |
286 if (!mSelectionDialog) { |
284 if (!mSelectionDialog) { |
287 mSelectionDialog = |
285 mSelectionDialog = |
288 new NmMailboxSelectionDialog(mUiEngine.mailboxListModel()); |
286 new NmMailboxSelectionDialog(mUiEngine.mailboxListModel()); |
289 } |
287 } |
|
288 |
|
289 if (!XQServiceUtil::isEmbedded()) { |
|
290 XQServiceUtil::toBackground(false); |
|
291 } |
|
292 |
290 connect(mSelectionDialog,SIGNAL(selectionDialogClosed(NmId&)), |
293 connect(mSelectionDialog,SIGNAL(selectionDialogClosed(NmId&)), |
291 this,SLOT(selectionDialogClosed(NmId&))); |
294 this,SLOT(selectionDialogClosed(NmId&))); |
292 mSelectionDialog->open(); |
295 mSelectionDialog->open(); |
293 |
296 |
294 // launch the editor when the dialog is closed |
297 // launch the editor when the dialog is closed |
312 mCurrentView->show(); |
315 mCurrentView->show(); |
313 mCurrentView = NULL; |
316 mCurrentView = NULL; |
314 } |
317 } |
315 |
318 |
316 if (mStartParam) { |
319 if (mStartParam) { |
|
320 // Make sure the NMail application is in the foreground |
|
321 if (!XQServiceUtil::isEmbedded()) { |
|
322 XQServiceUtil::toBackground(false); |
|
323 } |
|
324 |
317 mStartParam->setMailboxId(mailboxId); |
325 mStartParam->setMailboxId(mailboxId); |
318 mApplication->enterNmUiView(mStartParam); |
326 mApplication->enterNmUiView(mStartParam); |
319 mStartParam = NULL; // ownership passed |
327 mStartParam = NULL; // ownership passed |
320 } |
328 } |
321 completeRequest(mAsyncReqId, 1); |
329 completeRequest(mAsyncReqId, 1); |