Tabs: Use selectTabInternal() in kMouseDownMessage handler

This commit is contained in:
David Capello 2015-04-17 09:28:52 -03:00
parent 81f41e6793
commit 61fa0b454f

View File

@ -379,14 +379,7 @@ bool Tabs::onProcessMessage(Message* msg)
}
}
else if (mouseMsg->left() && m_selected != m_hot) {
m_selected = m_hot;
// Left-click is processed in mouse down message,
// right-click is processed in mouse up.
if (m_selected && m_delegate)
m_delegate->onSelectTab(this, m_selected->view);
invalidate();
selectTabInternal(m_hot);
}
captureMouse();