Terminal: Block Close Terminal

Fixes: QTCREATORBUG-30070
Change-Id: Id775bea9f3db851f07f6e86aedb02f975b5a7ee4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-12-14 13:45:18 +01:00
parent 690d6a6c8f
commit 3795a94144
2 changed files with 1 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ void TerminalWidget::setupActions()
ActionBuilder closeAction(this, Core::Constants::CLOSE);
closeAction.setContext(m_context);
closeAction.addOnTriggered(this, &TerminalWidget::closeTerminal);
m_close = make_registered(closeAction);
// We do not register the close action, as we want it to be blocked if the keyboard is locked.
ActionBuilder clearTerminalAction(this, Constants::CLEAR_TERMINAL);
clearTerminalAction.setContext(m_context);

View File

@@ -107,7 +107,6 @@ private:
RegisteredAction m_selectAll;
RegisteredAction m_moveCursorWordLeft;
RegisteredAction m_moveCursorWordRight;
RegisteredAction m_close;
Internal::ShortcutMap m_shortcutMap;