forked from qt-creator/qt-creator
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:
@@ -282,7 +282,7 @@ void TerminalWidget::setupActions()
|
|||||||
ActionBuilder closeAction(this, Core::Constants::CLOSE);
|
ActionBuilder closeAction(this, Core::Constants::CLOSE);
|
||||||
closeAction.setContext(m_context);
|
closeAction.setContext(m_context);
|
||||||
closeAction.addOnTriggered(this, &TerminalWidget::closeTerminal);
|
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);
|
ActionBuilder clearTerminalAction(this, Constants::CLEAR_TERMINAL);
|
||||||
clearTerminalAction.setContext(m_context);
|
clearTerminalAction.setContext(m_context);
|
||||||
|
|||||||
@@ -107,7 +107,6 @@ private:
|
|||||||
RegisteredAction m_selectAll;
|
RegisteredAction m_selectAll;
|
||||||
RegisteredAction m_moveCursorWordLeft;
|
RegisteredAction m_moveCursorWordLeft;
|
||||||
RegisteredAction m_moveCursorWordRight;
|
RegisteredAction m_moveCursorWordRight;
|
||||||
RegisteredAction m_close;
|
|
||||||
|
|
||||||
Internal::ShortcutMap m_shortcutMap;
|
Internal::ShortcutMap m_shortcutMap;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user