mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
- Fixed possible multiple rss tabs bug
This commit is contained in:
parent
c781545609
commit
42a2acefd3
1 changed files with 5 additions and 3 deletions
|
@ -286,9 +286,11 @@ GUI::~GUI() {
|
|||
void GUI::displayRSSTab(bool enable) {
|
||||
if(enable) {
|
||||
// RSS tab
|
||||
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…
Add table
Add a link
Reference in a new issue