Fix crash when hiding RSS and then showing it again

This commit is contained in:
Christophe Dumez 2010-11-13 20:14:59 +00:00
parent ad087d7e88
commit e11545c8a3
5 changed files with 11 additions and 9 deletions

View file

@ -364,7 +364,7 @@ void GUI::displayRSSTab(bool enable) {
if(enable) {
// RSS tab
if(!rssWidget) {
rssWidget = new RSSImp(BTSession);
rssWidget = new RSSImp(tabs);
int index_tab = tabs->addTab(rssWidget, tr("RSS"));
tabs->setTabIcon(index_tab, QIcon(QString::fromUtf8(":/Icons/rss32.png")));
}