forked from qt-creator/qt-creator
Terminal: Use one aspect more directly
Change-Id: I0767b66b6fa015535876e3ed67495e941631117b Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -142,7 +142,7 @@ void TerminalPane::openTerminal(const OpenTerminalParameters ¶meters)
|
|||||||
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user