Avoid unnecessary call to emitActivePartChanged in showTab. The call to

KonqFrameTabs::setCurrentIndex already takes care of that for us.
This commit is contained in:
Dawit Alemayehu 2012-08-26 19:42:57 -04:00
parent 55c0f6baf9
commit ba9f98d622

View file

@ -513,10 +513,8 @@ void KonqViewManager::activateTab(int position)
void KonqViewManager::showTab( KonqView *view )
{
if (m_tabContainer->currentWidget() != view->frame())
{
if (m_tabContainer->currentWidget() != view->frame()) {
m_tabContainer->setCurrentIndex( m_tabContainer->indexOf( view->frame() ) );
emitActivePartChanged();
}
}
@ -524,7 +522,6 @@ void KonqViewManager::showTab(int tabIndex)
{
if (m_tabContainer->currentIndex() != tabIndex) {
m_tabContainer->setCurrentIndex(tabIndex);
emitActivePartChanged();
}
}