Browse Source

- Fixed possible multiple rss tabs bug

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
42a2acefd3
  1. 8
      src/GUI.cpp

8
src/GUI.cpp

@ -286,9 +286,11 @@ GUI::~GUI() { @@ -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;

Loading…
Cancel
Save