aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/terminal/terminalwidget.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2023-12-14 13:45:18 +0100
committerMarcus Tillmanns <[email protected]>2024-01-08 08:24:53 +0000
commit3795a941443a59d4b877e1e4887ef372d04b8a36 (patch)
tree62654661550db85d6429b33ac528b5227d3a134c /src/plugins/terminal/terminalwidget.cpp
parent690d6a6c8f9c0c027157ec41f930f6b6f72a458a (diff)
Terminal: Block Close Terminal
Fixes: QTCREATORBUG-30070 Change-Id: Id775bea9f3db851f07f6e86aedb02f975b5a7ee4 Reviewed-by: <[email protected]> Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/terminal/terminalwidget.cpp')
-rw-r--r--src/plugins/terminal/terminalwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/terminal/terminalwidget.cpp b/src/plugins/terminal/terminalwidget.cpp
index defa019b3f3..96dffcb65f7 100644
--- a/src/plugins/terminal/terminalwidget.cpp
+++ b/src/plugins/terminal/terminalwidget.cpp
@@ -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);