forked from qt-creator/qt-creator
Terminal: Set focus after closing tab
Change-Id: I1c13d0e59000ca3d1a88a3fe543ccd1aa6db7462 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -218,6 +218,11 @@ void TerminalPane::removeTab(int index)
|
||||
delete m_tabWidget->widget(index);
|
||||
|
||||
TerminalCommands::instance().paneActions().closeTerminal.setEnabled(m_tabWidget->count() > 1);
|
||||
|
||||
if (auto terminal = currentTerminal()) {
|
||||
terminal->setFocus();
|
||||
}
|
||||
|
||||
emit navigateStateUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user