1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[Qt5] Fixed hiding close button on current tab when dragging it

[ci skip]
This commit is contained in:
nowrep 2014-03-29 13:02:17 +01:00
parent e598ee1230
commit 6812e020d6

View File

@ -443,10 +443,13 @@ void TabBar::currentTabChanged(int index)
hideTabPreview(false); hideTabPreview(false);
showCloseButton(index); // Don't hide close buttons when dragging tabs
hideCloseButton(m_tabWidget->lastTabIndex()); if (m_dragStartPosition.isNull()) {
showCloseButton(index);
hideCloseButton(m_tabWidget->lastTabIndex());
ensureVisible(index); ensureVisible(index);
}
m_tabWidget->currentTabChanged(index); m_tabWidget->currentTabChanged(index);
} }