diff --git a/src/plugins/bineditor/bineditor.cpp b/src/plugins/bineditor/bineditor.cpp index f77c247e1073bf8b89d3c3f06c02c414726e5e12..1f16fab7b88f09deef823eab9f0c442b51f15f12 100644 --- a/src/plugins/bineditor/bineditor.cpp +++ b/src/plugins/bineditor/bineditor.cpp @@ -954,8 +954,6 @@ void BinEditor::setCursorPosition(int pos, MoveMode moveMode) hasSelection = m_anchorPosition != m_cursorPosition; updateLines(hasSelection ? oldCursorPosition : m_cursorPosition, m_cursorPosition); ensureCursorVisible(); - if (hasSelection) - emit copyAvailable(hasSelection); emit cursorPositionChanged(m_cursorPosition); } diff --git a/src/plugins/bineditor/bineditor.h b/src/plugins/bineditor/bineditor.h index e285659ce9cd4a30d1224b98cbc26555bfecc48d..5e3416114a1fb34de7da9c62c1bf980f77c556ed 100644 --- a/src/plugins/bineditor/bineditor.h +++ b/src/plugins/bineditor/bineditor.h @@ -136,7 +136,6 @@ Q_SIGNALS: void modificationChanged(bool modified); void undoAvailable(bool); void redoAvailable(bool); - void copyAvailable(bool); void cursorPositionChanged(int position); void dataRequested(Core::IEditor *editor, quint64 block); diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index 3da2e89cbe42f5aaecd83f33cbc8f17fcc20cd15..8bc09c73bf7a00cdb828b8f6725c03f0d6fd2277 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -508,7 +508,6 @@ void BinEditorPlugin::initializeEditor(BinEditor *editor) QObject::connect(editor, SIGNAL(undoAvailable(bool)), this, SLOT(updateActions())); QObject::connect(editor, SIGNAL(redoAvailable(bool)), this, SLOT(updateActions())); - QObject::connect(editor, SIGNAL(copyAvailable(bool)), this, SLOT(updateActions())); Aggregation::Aggregate *aggregate = new Aggregation::Aggregate; BinEditorFind *binEditorFind = new BinEditorFind(editor); @@ -570,8 +569,6 @@ void BinEditorPlugin::updateActions() m_undoAction->setEnabled(m_currentEditor && m_currentEditor->isUndoAvailable()); if (m_redoAction) m_redoAction->setEnabled(m_currentEditor && m_currentEditor->isRedoAvailable()); - if (m_copyAction) - m_copyAction->setEnabled(m_currentEditor && m_currentEditor->hasSelection()); } void BinEditorPlugin::undoAction()