Skip to content

Commit

Permalink
Avoid checking uninitialized member + simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
f2404 committed Dec 23, 2015
1 parent 45ef247 commit f9a7d4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/TerminalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ TerminalDisplay::TerminalDisplay(QWidget *parent)
,_terminalSizeHint(false)
,_terminalSizeStartup(true)
,_bidiEnabled(false)
,_mouseMarks(false)
,_actSel(0)
,_wordSelectionMode(false)
,_lineSelectionMode(false)
Expand Down Expand Up @@ -1800,7 +1801,7 @@ void TerminalDisplay::mousePressEvent(QMouseEvent* ev)
}
else if ( ev->button() == Qt::MidButton )
{
if ( _mouseMarks || (!_mouseMarks && (ev->modifiers() & Qt::ShiftModifier)) )
if ( _mouseMarks || (ev->modifiers() & Qt::ShiftModifier) )
emitSelection(true,ev->modifiers() & Qt::ControlModifier);
else
emit mouseSignal( 1, charColumn +1, charLine +1 +_scrollBar->value() -_scrollBar->maximum() , 0);
Expand Down

0 comments on commit f9a7d4a

Please sign in to comment.