Skip to content

Commit fe297ea

Browse files
committed
qmdiEditor: copy/cut are always available
These actions now cut/copy current line. see diegoiast/qutepart-cpp#40
1 parent e4e95c8 commit fe297ea

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/widgets/qmdieditor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,6 @@ void qmdiEditor::setupActions() {
599599
actionChangeCase->setShortcutContext(Qt::WidgetWithChildrenShortcut);
600600
actionToggleHeader->setShortcutContext(Qt::WidgetWithChildrenShortcut);
601601

602-
connect(textEditor, &QPlainTextEdit::copyAvailable, actionCopy, &QAction::setEnabled);
603-
connect(textEditor, &QPlainTextEdit::copyAvailable, actionCut, &QAction::setEnabled);
604602
connect(textEditor, &QPlainTextEdit::undoAvailable, actionUndo, &QAction::setEnabled);
605603
connect(textEditor, &QPlainTextEdit::redoAvailable, actionRedo, &QAction::setEnabled);
606604
connect(textEditor, &QPlainTextEdit::textChanged, this, &qmdiEditor::updateClientName);

0 commit comments

Comments
 (0)