--- a/messagingapp/msgui/unifiededitor/src/msgunieditormonitor.cpp Tue Jul 06 14:12:40 2010 +0300
+++ b/messagingapp/msgui/unifiededitor/src/msgunieditormonitor.cpp Wed Aug 18 09:45:25 2010 +0300
@@ -52,9 +52,9 @@
MsgUnifiedEditorMonitor::MsgUnifiedEditorMonitor(QObject* parent) :
QObject(parent),
mSkipNote(false)
-{
- init();
- mUniEditorGenUtils = new UniEditorGenUtils;
+{
+ mUniEditorGenUtils = q_check_ptr( new UniEditorGenUtils);
+ init();
}
//---------------------------------------------------------------
@@ -78,18 +78,14 @@
mSubjectSize = 0;
mMsgCurrAddressCount = 0;
- UniEditorGenUtils* uniEditorGenUtils = new UniEditorGenUtils;
-
mMaxMmsSize = KDefaultMaxSize;
- TRAP_IGNORE(mMaxMmsSize = uniEditorGenUtils->MaxMmsMsgSizeL());
+ TRAP_IGNORE(mMaxMmsSize = mUniEditorGenUtils->MaxMmsMsgSizeL());
mMaxSmsRecipients = KDefaultSmsRecipients;
- TRAP_IGNORE(mMaxSmsRecipients = uniEditorGenUtils->MaxSmsRecipientsL());
+ TRAP_IGNORE(mMaxSmsRecipients = mUniEditorGenUtils->MaxSmsRecipientsL());
mMaxMmsRecipients = KDefaultMmsRecipients;
- TRAP_IGNORE(mMaxMmsRecipients = uniEditorGenUtils->MaxMmsRecipientsL());
-
- delete uniEditorGenUtils;
+ TRAP_IGNORE(mMaxMmsRecipients = mUniEditorGenUtils->MaxMmsRecipientsL());
}
//---------------------------------------------------------------
@@ -151,6 +147,11 @@
view()->mBody->disableCharCounter();
view()->addSubject();
}
+ else
+ {
+ //Enable char counter
+ view()->mBody->enableCharCounter();
+ }
// check if sent by body widget
MsgUnifiedEditorBody* body = NULL;
@@ -206,7 +207,7 @@
dlg->setFocusPolicy(Qt::NoFocus);
dlg->setDismissPolicy(HbPopup::TapAnywhere);
dlg->setAttribute(Qt::WA_DeleteOnClose, true);
- dlg->setText(text);
+ dlg->setTitle(text);
dlg->show();
}
// reset skip note flag