1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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);
showCloseButton(index);
hideCloseButton(m_tabWidget->lastTabIndex());
// Don't hide close buttons when dragging tabs
if (m_dragStartPosition.isNull()) {
showCloseButton(index);
hideCloseButton(m_tabWidget->lastTabIndex());
ensureVisible(index);
ensureVisible(index);
}
m_tabWidget->currentTabChanged(index);
}