summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_log_rtf.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp
index b38eb0f4eb..512f4d3344 100644
--- a/src/mir_app/src/srmm_log_rtf.cpp
+++ b/src/mir_app/src/srmm_log_rtf.cpp
@@ -143,7 +143,13 @@ void CRtfLogWindow::InsertFileLink(CMStringA &buf, MEVENT hEvent, const DB::FILE
buf.AppendFormat("ofile:%ul", hEvent);
buf.Append("\"}{\\fldrslt{\\ul ");
AppendUnicodeString(buf, blob.getName());
- buf.AppendFormat("}}} | %uKB", blob.getSize() / 1024);
+ buf.AppendFormat("}}}");
+
+ if (blob.getSize() > 0 && blob.getSize() == blob.getTransferred())
+ buf.Append(" \\u10004? ");
+
+ if (uint32_t size = blob.getSize())
+ buf.AppendFormat(" %uKB", size < 1024 ? 1 : blob.getSize() / 1024);
CMStringA szHost;
if (const char *b = strstr(blob.getUrl(), "://"))
@@ -152,11 +158,6 @@ void CRtfLogWindow::InsertFileLink(CMStringA &buf, MEVENT hEvent, const DB::FILE
if (!szHost.IsEmpty())
buf.AppendFormat(" on %s", szHost.c_str());
-
- if (blob.getSize() > 0 && blob.getSize() == blob.getTransferred()) {
- buf.AppendChar(' ');
- AppendUnicodeString(buf, TranslateT("Completed"));
- }
}
/////////////////////////////////////////////////////////////////////////////////////////