From bfe7551aa2a835590c2999fbc2c75463accf2068 Mon Sep 17 00:00:00 2001 From: coolo Date: Sun, 9 Dec 2007 20:47:33 +0000 Subject: [PATCH] fix porting error git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@42882 e0cc52ee-31ee-0310-8b87-e83c4596d67c --- src/YQRichText.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/YQRichText.cc b/src/YQRichText.cc index 8a59d30..1702611 100644 --- a/src/YQRichText.cc +++ b/src/YQRichText.cc @@ -59,6 +59,8 @@ YQRichText::YQRichText( YWidget * parent, const string & text, bool plainTextMod { _textBrowser->setHtml(QString::fromUtf8(text.c_str())); } + + setValue( text ); // Set the text foreground color to black, regardless of its current // settings - it might be changed if this widget resides in a @@ -96,7 +98,7 @@ void YQRichText::setValue( const string & newText ) if ( ! plainTextMode() ) { - text.replace( "&product;", YQUI::ui()->productName() ); + text.replace( "&product;", YQUI::ui()->productName() ); _textBrowser->setHtml( text ); } else -- 2.39.2