From dd35736bbee921049196fd492a08b6a0de85eb15 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 8 Jul 2012 19:30:11 +0200 Subject: [PATCH] ImportantMessage: flush on session detach, not on first print; else we might not have it for later use. --- webcit/webcit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webcit/webcit.c b/webcit/webcit.c index 22bd92a99..519a18e0d 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -863,7 +863,6 @@ void tmplput_importantmessage(StrBuf *Target, WCTemplputParams *TP) if (WCC != NULL) { if (StrLength(WCC->ImportantMsg) > 0) { StrEscAppend(Target, WCC->ImportantMsg, NULL, 0, 0); - FlushStrBuf(WCC->ImportantMsg); } } } @@ -973,6 +972,10 @@ SessionDetachModule_WEBCIT else FlushStrBuf(sess->WBuf); FlushStrBuf(sess->HBuf); + if (StrLength(sess->ImportantMsg) > 0) { + FlushStrBuf(sess->ImportantMsg); + } + } void -- 2.30.2