Terminal: Simplify OpenTerminalParameters construction

Change-Id: I4dcc2146f227e4a408c88de62f7594953c8ccb66
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Orgad Shaneh
2023-07-03 14:24:10 +03:00
committed by Orgad Shaneh
parent d222cc2dbd
commit ce082bb09f
5 changed files with 22 additions and 10 deletions

View File

@@ -162,7 +162,7 @@ QList<ShellModelItem> ShellModel::remote() const
const QList<ShellModelItem> deviceItems = Utils::transform(
deviceCmds, [](const Utils::Terminal::NameAndCommandLine &item) -> ShellModelItem {
return ShellModelItem{item.name, {}, {item.commandLine, std::nullopt, std::nullopt}};
return ShellModelItem{item.name, {}, {item.commandLine}};
});
return deviceItems;