Commit 6479b201 authored by Robert Loehning's avatar Robert Loehning
Browse files

Fixed: Mouse-navigation could not be disabled.

Reviewed-By: dt
parent e5076f63
......@@ -1384,7 +1384,8 @@ void CPPEditor::mouseMoveEvent(QMouseEvent *e)
void CPPEditor::mouseReleaseEvent(QMouseEvent *e)
{
if (e->modifiers() & Qt::ControlModifier && !(e->modifiers() & Qt::ShiftModifier)
if (m_mouseNavigationEnabled && e->modifiers() & Qt::ControlModifier
&& !(e->modifiers() & Qt::ShiftModifier)
&& e->button() == Qt::LeftButton) {
const QTextCursor cursor = cursorForPosition(e->pos());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment