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:
parent
e598ee1230
commit
6812e020d6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user