1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[TabTooltips] Fixed tooltips disappearing on (un)pinning tabs

This commit is contained in:
nowrep 2014-02-12 12:11:09 +01:00
parent 801284eda0
commit 79cd4e381d

View File

@ -266,7 +266,6 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
m_view->tabWidget()->setTabIcon(index, tab.icon); m_view->tabWidget()->setTabIcon(index, tab.icon);
m_view->tabWidget()->setTabText(index, tab.title); m_view->tabWidget()->setTabText(index, tab.title);
m_view->tabWidget()->setTabToolTip(index, tab.title);
m_locationBar.data()->showUrl(tab.url); m_locationBar.data()->showUrl(tab.url);
if (!tab.url.isEmpty()) { if (!tab.url.isEmpty()) {
@ -372,6 +371,7 @@ void WebTab::pinTab(int index)
m_pinned = !m_pinned; m_pinned = !m_pinned;
index = tabWidget->pinUnPinTab(index, m_view->title()); index = tabWidget->pinUnPinTab(index, m_view->title());
tabWidget->setTabText(index, m_view->title());
tabWidget->setCurrentIndex(index); tabWidget->setCurrentIndex(index);
} }