Restore the old behavior where the icon is removed from the status bar

when starting loading a new page.

BUG: 319675
FIXED-IN: 4.10.4
This commit is contained in:
Andrea Iacovitti 2013-05-11 18:43:27 +02:00
parent 4e438670d8
commit 854fab5bfa

View file

@ -79,6 +79,7 @@ KonqFeedIcon::KonqFeedIcon(QObject *parent, const QVariantList &)
m_part = part; m_part = part;
connect(m_part, SIGNAL(completed()), this, SLOT(addFeedIcon())); connect(m_part, SIGNAL(completed()), this, SLOT(addFeedIcon()));
connect(m_part, SIGNAL(completed(bool)), this, SLOT(addFeedIcon())); connect(m_part, SIGNAL(completed(bool)), this, SLOT(addFeedIcon()));
connect(m_part, SIGNAL(started(KIO::Job*)), this, SLOT(removeFeedIcon()));
} }
} }
} }
@ -187,7 +188,7 @@ void KonqFeedIcon::addFeedIcon()
void KonqFeedIcon::removeFeedIcon() void KonqFeedIcon::removeFeedIcon()
{ {
m_feedList.clear(); m_feedList.clear();
if(m_feedIcon) if (m_feedIcon && m_statusBarEx)
{ {
m_statusBarEx->removeStatusBarItem(m_feedIcon); m_statusBarEx->removeStatusBarItem(m_feedIcon);
delete m_feedIcon; delete m_feedIcon;