1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +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();
m_pressedIndex = -1;
m_dragInProgress = false;
m_dragStartPosition = QPoint();
if (event->button() == Qt::LeftButton) {
m_pressedIndex = -1;
m_dragInProgress = false;
m_dragStartPosition = QPoint();
}
QTabBar::mouseReleaseEvent(event);