1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52:12 +01:00

ComboTabBar: Only reset dragInProgress on left mouse button release

This commit is contained in:
David Rosca 2018-01-13 11:41:45 +01:00
parent 54bad20590
commit b21e2634bc

View File

@ -1465,9 +1465,11 @@ void TabBarHelper::mouseReleaseEvent(QMouseEvent* event)
{ {
event->ignore(); event->ignore();
if (event->button() == Qt::LeftButton) {
m_pressedIndex = -1; m_pressedIndex = -1;
m_dragInProgress = false; m_dragInProgress = false;
m_dragStartPosition = QPoint(); m_dragStartPosition = QPoint();
}
QTabBar::mouseReleaseEvent(event); QTabBar::mouseReleaseEvent(event);