diff mcabber/src/histolog.c @ 1274:c33b5b6fbf08

Fix screen refresh issue (spotted by franky) The message "Reading <JID> history file...", when loading a big history file, was displayed too late.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 22 Aug 2007 22:19:33 +0200
parents 2de8f8ba1f34
children e42f48103609
line wrap: on
line diff
--- a/mcabber/src/histolog.c	Tue Aug 21 22:45:53 2007 +0200
+++ b/mcabber/src/histolog.c	Wed Aug 22 22:19:33 2007 +0200
@@ -193,8 +193,10 @@
   // If file is large (> 3MB here), display a message to inform the user
   // (it can take a while...)
   if (!fstat(fileno(fp), &bufstat)) {
-    if (bufstat.st_size > 3145728)
-      scr_LogPrint(LPRINT_LOGNORM, "Reading <%s> history file...", bjid);
+    if (bufstat.st_size > 3145728) {
+      scr_LogPrint(LPRINT_NORMAL, "Reading <%s> history file...", bjid);
+      scr_DoUpdate();
+    }
   }
 
   max_num_of_blocks = get_max_history_blocks();