summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-28 14:17:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-28 14:17:18 +0300
commit8dd25fa2937b260430eef88c1d6ebcc7b162020a (patch)
tree14a34321b90c0fb9560a9f6fc718ad164b8ff50f /src
parent10f748c2454c48f92e28ed987430cb5846df456a (diff)
fixes #4152 (TabSRMM: содержимое окна мигает (перерисовывается) с высокой частотой в процессе загрузки файла)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_log_rtf.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp
index c873bb2e02..ffc695c6d7 100644
--- a/src/mir_app/src/srmm_log_rtf.cpp
+++ b/src/mir_app/src/srmm_log_rtf.cpp
@@ -31,8 +31,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define EVENTTYPE_STATUSCHANGE 25368
#define EVENTTYPE_ERRMSG 25366
-static int OnRedrawLog(void *pObj, WPARAM hContact, LPARAM)
+static int OnRedrawLog(void *pObj, WPARAM hContact, LPARAM hDbEvent)
{
+ DB::EventInfo dbei(hDbEvent);
+ if (dbei && dbei.eventType == EVENTTYPE_FILE) {
+ DB::FILE_BLOB blob(dbei);
+ if (!blob.isCompleted())
+ return 0;
+ }
+
auto *pLog = (CRtfLogWindow *)pObj;
auto &pDlg = pLog->GetDialog();