mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Avoid unnecessary call to emitActivePartChanged in showTab. The call to
KonqFrameTabs::setCurrentIndex already takes care of that for us.
This commit is contained in:
parent
55c0f6baf9
commit
ba9f98d622
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue