forked from qt-creator/qt-creator
docker: Fix StringAspect default value handling
The StringAspect needs to return a possible default value if no value was set by the user. Otherwise it would write an empty string when ::apply was called. Also a small improvement for docker error logging is added Change-Id: I85f80253894d2c3e726da714616e5275039febcc Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -47,7 +47,7 @@ DockerSettings::DockerSettings()
|
||||
registerAspect(&dockerBinaryPath);
|
||||
dockerBinaryPath.setDisplayStyle(StringAspect::PathChooserDisplay);
|
||||
dockerBinaryPath.setExpectedKind(PathChooser::ExistingCommand);
|
||||
dockerBinaryPath.setDefaultValue(FilePath::fromString("docker").searchInPath({"/usr/local/bin"}).toString());
|
||||
dockerBinaryPath.setDefaultFilePath(FilePath::fromString("docker").searchInPath({"/usr/local/bin"}));
|
||||
dockerBinaryPath.setDisplayName(tr("Docker CLI"));
|
||||
dockerBinaryPath.setHistoryCompleter("Docker.Command.History");
|
||||
dockerBinaryPath.setLabelText(tr("Command:"));
|
||||
|
||||
Reference in New Issue
Block a user