messagingapp/msgui/unifiededitor/src/msgunieditormonitor.cpp
changeset 44 36f374c67aa8
parent 34 84197e66a4bd
child 52 12db4185673b
--- a/messagingapp/msgui/unifiededitor/src/msgunieditormonitor.cpp	Wed Jun 23 18:09:17 2010 +0300
+++ b/messagingapp/msgui/unifiededitor/src/msgunieditormonitor.cpp	Tue Jul 06 14:12:40 2010 +0300
@@ -117,6 +117,7 @@
 
     HbWidget* senderWidget = qobject_cast<HbWidget*>(sender());
     updateMsgInfo(senderWidget);
+    updateSend();
 }
 
 //---------------------------------------------------------------
@@ -329,4 +330,21 @@
     return false;
 }
 
+//---------------------------------------------------------------
+// MsgUnifiedEditorMonitor::updateSend
+// @see header file
+//---------------------------------------------------------------
+void MsgUnifiedEditorMonitor::updateSend()
+{
+    if (mMsgCurrAddressCount > 0 && (mSubjectSize + mBodySize + mContainerSize) > 0 && !view()->mBody->isImageResizing())
+    {
+        emit enableSend(true);
+    }
+    else
+    {
+        emit enableSend(false);
+    }
+}
+
+
 //EOF