summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/fortune/fortunepluginwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.cpp b/noncore/todayplugins/fortune/fortunepluginwidget.cpp
index 583bf0b..b210fa9 100644
--- a/noncore/todayplugins/fortune/fortunepluginwidget.cpp
+++ b/noncore/todayplugins/fortune/fortunepluginwidget.cpp
@@ -78,6 +78,7 @@ void FortunePluginWidget::getFortune() {
void FortunePluginWidget::slotStdOut( OProcess* proc, char* buf, int len )
{
- QCString cstring( buf, len );
- fortune->setText( cstring );
+ QCString s( buf, len );
+ s.replace( QRegExp("\n"), "" );
+ fortune->setText( s );
}