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

Simplified code

Change-Id: I43aa8182d77b4727a503a9a9ed6e7ebe7f7e9f1e

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarEike Ziller <>
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);
if (hasSelection != (m_anchorPosition != m_anchorPosition))
emit copyAvailable(m_anchorPosition != m_cursorPosition);
if (hasSelection)
emit copyAvailable(hasSelection);
emit cursorPositionChanged(m_cursorPosition);
Supports Markdown
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