From e4ad7ecabc3a645f48a6350c80af4f7f1e183094 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 26 Jul 2009 21:05:13 +0000 Subject: [PATCH] corrected the scroll bug in the group chat git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1435 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 3d2cf72cc..d9a066d88 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -711,6 +711,7 @@ void PeersDialog::insertChat() // notify with a systray icon msg if(it->rsid != rsPeers->getOwnId()) { + // This is a trick to translate HTML into text. QTextEdit editor ; editor.setHtml(QString::fromStdWString(it->msg)); QString notifyMsg(QString::fromStdString(it->name)+": "+editor.toPlainText()) ; @@ -734,10 +735,9 @@ void PeersDialog::insertChat() } - msgWidget->setHtml(currenttxt); - - + msgWidget->setHtml(currenttxt); + msgWidget->update(); QScrollBar *qsb = msgWidget->verticalScrollBar(); qsb -> setValue(qsb->maximum()); }