summaryrefslogtreecommitdiff
path: root/src/plugins/terminal/terminalprocessimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/terminal/terminalprocessimpl.cpp')
-rw-r--r--src/plugins/terminal/terminalprocessimpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/terminal/terminalprocessimpl.cpp b/src/plugins/terminal/terminalprocessimpl.cpp
index ef3c4acf64..d2b76e51a6 100644
--- a/src/plugins/terminal/terminalprocessimpl.cpp
+++ b/src/plugins/terminal/terminalprocessimpl.cpp
@@ -44,10 +44,11 @@ public:
terminal->setShellName(setup.m_commandLine.executable().fileName());
m_terminalPane->addTerminal(terminal, "App");
} else {
- m_terminalPane->ensureVisible(terminal);
terminal->restart(openParameters);
}
+ m_terminalPane->ensureVisible(terminal);
+
connect(terminal, &TerminalWidget::destroyed, m_process, [process = m_process] {
if (process->inferiorProcessId())
process->emitFinished(-1, QProcess::CrashExit);