From: Dima K <di...@ya...> - 2003-05-31 17:42:04
|
--- "Juan F. Codagnone" <ju...@us...> wrote: > the patch only groups the orphans messages (the one that floods the > screen). > You still have the 60 pop-ups, but one at the time (more elegant and > more easy > to kill 'em all). It does not detect/group similar messages (yes. its > a > fiasco) . To do that perhaps i would need to skip the timestamp of > the > messages, and add a counter to my OrphanMsgManager::msg structure. > > When i first made the patch i was thinking in extending is in a way > to add a > "Remove All pending messages". I don't know if that is what the rest > of the > users want. Hmm, I think the problem is that a single event generates a lot of messages in qt and kde-gui because of a bug, here's the solution: diff -u -b -p -r1.37 outputwin.cpp --- outputwin.cpp 17 Feb 2003 19:40:32 -0000 1.37 +++ outputwin.cpp 31 May 2003 17:41:20 -0000 @@ -106,13 +106,18 @@ void CQtLogWindow::slot_log(int s) outputBox->removeLine(0); } - if (NextLogType() == L_ERROR) + /* The next call will block, so we need to clear the log so that processing + can continue */ + unsigned short nNextLogType = NextLogType(); + ClearLog(); + + if (nNextLogType == L_ERROR) CriticalUser(NULL, str); - else if (NextLogType() == L_MESSAGE) + + else if (nNextLogType == L_MESSAGE) InformUser(NULL, str); - ClearLog(); } void CQtLogWindow::slot_save() __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |