diff options
author | Robert Loehning <robert.loehning@nokia.com> | 2011-09-01 21:40:26 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@nokia.com> | 2011-09-02 12:25:07 +0200 |
commit | 204f6bc3fa9eec196269f7ef421be0dfa4ae5d5a (patch) | |
tree | b3ce13660143e00a3ca9bbf0f2458479faebf787 | |
parent | 85529b030acc09f72c4681946bd526b4b62bc242 (diff) |
Simplified code
Change-Id: I43aa8182d77b4727a503a9a9ed6e7ebe7f7e9f1e
Reviewed-on: http://codereview.qt.nokia.com/4102
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
-rw-r--r-- | src/plugins/bineditor/bineditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/bineditor/bineditor.cpp b/src/plugins/bineditor/bineditor.cpp index 191e9345cd..c12b61db71 100644 --- a/src/plugins/bineditor/bineditor.cpp +++ b/src/plugins/bineditor/bineditor.cpp @@ -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); } |