forked from qt-creator/qt-creator
Terminal: Simplify OpenTerminalParameters construction
Change-Id: I4dcc2146f227e4a408c88de62f7594953c8ccb66 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d222cc2dbd
commit
ce082bb09f
@@ -40,11 +40,9 @@ public:
|
||||
|
||||
TerminalWidget *terminal = m_terminalPane->stoppedTerminalWithId(id);
|
||||
|
||||
const OpenTerminalParameters openParameters{setup.m_commandLine,
|
||||
std::nullopt,
|
||||
std::nullopt,
|
||||
ExitBehavior::Keep,
|
||||
id};
|
||||
OpenTerminalParameters openParameters{setup.m_commandLine};
|
||||
openParameters.m_exitBehavior = ExitBehavior::Keep;
|
||||
openParameters.identifier = id;
|
||||
|
||||
if (!terminal) {
|
||||
terminal = new TerminalWidget(nullptr, openParameters);
|
||||
|
Reference in New Issue
Block a user