summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-18 19:04:48 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-18 19:04:48 +0300
commita33e78824264ed11bde0051914a3d4d1e68d44ed (patch)
treed3d7f470c3a5939c19e88525192b4ebf2afe131d /plugins/TabSRMM/src
parent66aae3c929b110d9621c649ebaeba2e75dc2a1b9 (diff)
fixes #4675 (Не работают кнопки форматирования в StdMsg/Scriver)
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index d9fd2c3804..dd10c1934d 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -791,10 +791,12 @@ void CMsgDialog::onClick_Ok(CCtrlButton *)
if (decoded.IsEmpty())
return;
+ if (final_sendformat)
+ DoRtfToTags(decoded);
+ decoded.TrimRight();
+
if (isChat()) {
m_cache->saveHistory();
- DoRtfToTags(decoded);
- decoded.Trim();
if (m_si->pMI->bAckMsg) {
m_message.Enable(false);
@@ -820,10 +822,6 @@ void CMsgDialog::onClick_Ok(CCtrlButton *)
Skin_PlaySound("SendMsg");
}
else {
- if (final_sendformat)
- DoRtfToTags(decoded);
- decoded.TrimRight();
-
T2Utf utfResult(decoded);
size_t memRequired = mir_strlen(utfResult) + 1;