mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
[Qt5] Fixed hiding close button on current tab when dragging it
[ci skip]
This commit is contained in:
parent
e598ee1230
commit
6812e020d6
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user