mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
- Fixed possible multiple rss tabs bug
This commit is contained in:
parent
c781545609
commit
42a2acefd3
@ -286,9 +286,11 @@ GUI::~GUI() {
|
|||||||
void GUI::displayRSSTab(bool enable) {
|
void GUI::displayRSSTab(bool enable) {
|
||||||
if(enable) {
|
if(enable) {
|
||||||
// RSS tab
|
// RSS tab
|
||||||
rssWidget = new RSSImp();
|
if(rssWidget == 0) {
|
||||||
tabs->addTab(rssWidget, tr("RSS"));
|
rssWidget = new RSSImp();
|
||||||
tabs->setTabIcon(3, QIcon(QString::fromUtf8(":/Icons/rss32.png")));
|
tabs->addTab(rssWidget, tr("RSS"));
|
||||||
|
tabs->setTabIcon(3, QIcon(QString::fromUtf8(":/Icons/rss32.png")));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if(rssWidget != 0) {
|
if(rssWidget != 0) {
|
||||||
delete rssWidget;
|
delete rssWidget;
|
||||||
|
Loading…
Reference in New Issue
Block a user