From 42a2acefd315bafcd1176243eeaa816d372cdfa6 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 20 Aug 2008 12:15:50 +0000 Subject: [PATCH] - Fixed possible multiple rss tabs bug --- src/GUI.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 9a0de36cf..0d89c6346 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -286,9 +286,11 @@ GUI::~GUI() { void GUI::displayRSSTab(bool enable) { if(enable) { // RSS tab - rssWidget = new RSSImp(); - tabs->addTab(rssWidget, tr("RSS")); - tabs->setTabIcon(3, QIcon(QString::fromUtf8(":/Icons/rss32.png"))); + if(rssWidget == 0) { + rssWidget = new RSSImp(); + tabs->addTab(rssWidget, tr("RSS")); + tabs->setTabIcon(3, QIcon(QString::fromUtf8(":/Icons/rss32.png"))); + } } else { if(rssWidget != 0) { delete rssWidget;