--- a/messagingapp/msgui/conversationview/src/msgconversationbaseview.cpp Fri Jun 11 13:35:48 2010 +0300
+++ b/messagingapp/msgui/conversationview/src/msgconversationbaseview.cpp Wed Jun 23 18:09:17 2010 +0300
@@ -42,6 +42,8 @@
QTM_USE_NAMESPACE
+const int INVALID_MSGID = -1;
+
// LOCALIZATION
#define LOC_SAVED_TO_DRAFTS hbTrId("txt_messaging_dpopinfo_saved_to_drafts")
@@ -154,16 +156,18 @@
// MsgConversationBaseView::saveContentToDrafts
// saves the editors content to drafts
//---------------------------------------------------------------
-void MsgConversationBaseView::saveContentToDrafts()
+int MsgConversationBaseView::saveContentToDrafts()
{
+ int msgId = INVALID_MSGID;
bool result = false;
if (mConversationId >= 0) {
- result = mConversationView->saveContentToDrafts();
+ msgId = mConversationView->saveContentToDrafts();
}
- if (result) {
+ if (msgId != INVALID_MSGID) {
HbNotificationDialog::launchDialog(LOC_SAVED_TO_DRAFTS);
}
+ return msgId;
}
//---------------------------------------------------------------