forked from qt-creator/qt-creator
Terminal: Fix "Enter does not work after copy"
Change-Id: Ic541ba15f52084bcd9b955af718efc3defc64539 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -483,19 +483,12 @@ bool TerminalWidget::setSelection(const std::optional<Selection> &selection)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if (m_selection && m_selection->final) {
|
m_copyAction.setEnabled(selection.has_value());
|
||||||
QClipboard *clipboard = QApplication::clipboard();
|
|
||||||
if (clipboard->supportsSelection()) {
|
|
||||||
qCDebug(selectionLog) << "Clearing selection from clipboard";
|
|
||||||
clipboard->clear(QClipboard::Selection);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
m_selection = selection;
|
m_selection = selection;
|
||||||
|
|
||||||
if (m_selection && m_selection->final) {
|
if (m_selection && m_selection->final) {
|
||||||
qCDebug(selectionLog) << "Copy enabled:" << selection.has_value();
|
qCDebug(selectionLog) << "Copy enabled:" << selection.has_value();
|
||||||
m_copyAction.setEnabled(selection.has_value());
|
|
||||||
|
|
||||||
QClipboard *clipboard = QApplication::clipboard();
|
QClipboard *clipboard = QApplication::clipboard();
|
||||||
if (clipboard->supportsSelection()) {
|
if (clipboard->supportsSelection()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user