1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

TabBar: Don't hide add tab button when moving tabs

This commit is contained in:
David Rosca 2018-01-08 15:43:08 +01:00
parent 68ed91c909
commit 49ebfa3f5d

View File

@ -463,12 +463,6 @@ void TabBar::mouseMoveEvent(QMouseEvent* event)
}
if (!m_dragStartPosition.isNull()) {
if (m_tabWidget->buttonAddTab()->isVisible()) {
int manhattanLength = (event->pos() - m_dragStartPosition).manhattanLength();
if (manhattanLength > QApplication::startDragDistance()) {
m_tabWidget->buttonAddTab()->hide();
}
}
int offset = 0;
const int eventY = event->pos().y();
if (eventY < 0) {