htiui/HtiServicePlugins/HtiMessagesServicePlugin/src/MessageMgmntHandler.cpp
branchRCL_3
changeset 3 2703485a934c
parent 0 d6fe6244b863
child 6 69ec17276f52
--- a/htiui/HtiServicePlugins/HtiMessagesServicePlugin/src/MessageMgmntHandler.cpp	Tue Feb 02 00:17:27 2010 +0200
+++ b/htiui/HtiServicePlugins/HtiMessagesServicePlugin/src/MessageMgmntHandler.cpp	Fri Feb 19 22:51:38 2010 +0200
@@ -838,7 +838,7 @@
                 waiter->StartAndWait();
                 CleanupStack::PopAndDestroy( waiter );
                 HTI_LOG_TEXT( "Attachment added succesfully" );
-
+                ls.Close();
                 attachmentsExist = ETrue;
                 }
 
@@ -1191,7 +1191,7 @@
         CSmsHeader* smsHeader = &( smsMtm->SmsHeader() );
         delete smsHeader;
         smsHeader = NULL;
-        smsHeader = CSmsHeader::NewL( CSmsPDU::ESmsDeliver, smsMtm->Body() );
+        smsHeader = CSmsHeader::NewL( CSmsPDU::ESmsSubmit, smsMtm->Body() );
         smsHeader->SetFromAddressL( fromTo->Des() );
 
         // set body, the actual BIO message content