Commit 204f6bc3 authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning

Simplified code

Change-Id: I43aa8182d77b4727a503a9a9ed6e7ebe7f7e9f1e
Reviewed-on: http://codereview.qt.nokia.com/4102Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent 85529b03
......@@ -945,8 +945,8 @@ void BinEditor::setCursorPosition(int pos, MoveMode moveMode)
hasSelection = m_anchorPosition != m_cursorPosition;
updateLines(hasSelection ? oldCursorPosition : m_cursorPosition, m_cursorPosition);
ensureCursorVisible();
if (hasSelection != (m_anchorPosition != m_anchorPosition))
emit copyAvailable(m_anchorPosition != m_cursorPosition);
if (hasSelection)
emit copyAvailable(hasSelection);
emit cursorPositionChanged(m_cursorPosition);
}
......
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