Commit e44992ea authored by Stephan Binner's avatar Stephan Binner
Browse files

Fixed Bug 71026: uncached url image not displayed in tabs

svn path=/trunk/kdebase/konqueror/; revision=283807
parent 2fd00f04
......@@ -1395,6 +1395,7 @@ void KonqMainWindow::slotFindClosed( KonqDirPart * dirPart )
void KonqMainWindow::slotIconsChanged()
{
m_combo->updatePixmaps();
m_pViewManager->updatePixmaps();
setIcon( KonqPixmapProvider::self()->pixmapFor( m_combo->currentText() ));
}
......
......@@ -719,6 +719,21 @@ void KonqViewManager::showTab( KonqView *view )
emitActivePartChanged();
}
void KonqViewManager::updatePixmaps()
{
if (m_pDocContainer == 0L) return;
if (m_pDocContainer->frameType() != "Tabs") return;
KonqFrameTabs* tabContainer = static_cast<KonqFrameTabs*>(m_pDocContainer);
QPtrList<KonqView> viewList;
QPtrListIterator<KonqView> it( viewList );
tabContainer->listViews( &viewList );
for ( it.toFirst(); it != 0L; ++it )
it.current()->setTabIcon( it.current()->locationBarURL() );
}
void KonqViewManager::removeView( KonqView *view )
{
#ifdef DEBUG_VIEWMGR
......
......@@ -156,6 +156,12 @@ public:
*/
void showTab( KonqView *view );
/**
* Updates favicon pixmaps used in tabs
*
*/
void updatePixmaps();
/**
* Saves the current view layout to a config file.
* Remove config file before saving, especially if saveURLs is false.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment