messagingapp/msgui/unifiededitor/src/msgunieditorsubject.cpp
branchGCC_SURGE
changeset 47 5b14749788d7
parent 27 e4592d119491
parent 44 36f374c67aa8
--- a/messagingapp/msgui/unifiededitor/src/msgunieditorsubject.cpp	Thu Jun 17 09:57:06 2010 +0100
+++ b/messagingapp/msgui/unifiededitor/src/msgunieditorsubject.cpp	Thu Jul 22 16:32:06 2010 +0100
@@ -23,8 +23,8 @@
 // USER INCLUDES
 #include "msgunieditorsubject.h"
 #include "UniEditorGenUtils.h"
-#include "msgunifiededitorlineedit.h"
-#include "msgmonitor.h"
+#include "msgunieditorlineedit.h"
+#include "msgunieditormonitor.h"
 
 // Localized Constants
 #define LOC_SUBJECT hbTrId("txt_messaging_formlabel_subject")
@@ -115,8 +115,8 @@
 {
     // reject any text input if mms size limit is reached
     int futureSize = subjectSize() +
-            MsgMonitor::containerSize() + MsgMonitor::bodySize();
-    if(futureSize > MsgMonitor::maxMmsSize())
+            MsgUnifiedEditorMonitor::containerSize() + MsgUnifiedEditorMonitor::bodySize();
+    if(futureSize > MsgUnifiedEditorMonitor::maxMmsSize())
     {
         // atomic operation
         disconnect(mSubjectEdit, SIGNAL(contentsChanged(const QString&)),
@@ -151,7 +151,10 @@
 
 void MsgUnifiedEditorSubject::setText(const QString& text)
 {
-    mSubjectEdit->setText(text);
+    if(!text.isEmpty())
+    {
+        mSubjectEdit->setText(text);
+    }
 }
 
 void MsgUnifiedEditorSubject::setFocus()