Terminal: Use one aspect more directly

Change-Id: I0767b66b6fa015535876e3ed67495e941631117b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-07-10 14:31:02 +02:00
parent 0c77d981b1
commit 66018f10f3

View File

@@ -142,7 +142,7 @@ void TerminalPane::openTerminal(const OpenTerminalParameters &parameters)
QFileIconProvider iconProvider; QFileIconProvider iconProvider;
const FilePath command = parametersCopy.shellCommand const FilePath command = parametersCopy.shellCommand
? parametersCopy.shellCommand->executable() ? parametersCopy.shellCommand->executable()
: settings().shell.filePath(); : settings().shell();
icon = iconProvider.icon(command.toFileInfo()); icon = iconProvider.icon(command.toFileInfo());
} }
} }