forked from qt-creator/qt-creator
Utils: More explicit host os use to make it stand out
Quite a few of the uses are actually wrong, but are better visible now and therefore more likely to be fixed. Change-Id: Ia51f7d6eb1b2d3a9c9f73d67dabacfd227c44b15 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -76,7 +76,8 @@ void FileUtils::showInGraphicalShell(QWidget *parent, const FilePath &pathIn)
|
||||
const QString folder = fileInfo.isDir() ? fileInfo.absoluteFilePath() : fileInfo.filePath();
|
||||
const QString app = UnixUtils::fileBrowser(ICore::settings());
|
||||
QStringList browserArgs = ProcessArgs::splitArgs(
|
||||
UnixUtils::substituteFileBrowserParameters(app, folder));
|
||||
UnixUtils::substituteFileBrowserParameters(app, folder),
|
||||
HostOsInfo::hostOs());
|
||||
QString error;
|
||||
if (browserArgs.isEmpty()) {
|
||||
error = Tr::tr("The command for file browser is not set.");
|
||||
|
||||
Reference in New Issue
Block a user