summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2023-04-21 15:57:29 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2023-04-21 14:08:57 +0000
commit0c7c7272ea11fe4e4b55c9f98774cfc19d5764df (patch)
treed34655576c0c8f531228932b83f13ea7b536ef16
parentb0c3377f1daaee0cdaf9a7b695e9391226d50c66 (diff)
downloadqt-creator-0c7c7272ea11fe4e4b55c9f98774cfc19d5764df.tar.gz
StudioWelcome: Use DocumentsLocation for examples also on macOS
This was a workaround for macOS (QDS-6305). Task-number: QDS-9232 Change-Id: If85d2f950765d8114d8de60ab1dd5126845bb599 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--src/plugins/qmldesignerbase/utils/designerpaths.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/qmldesignerbase/utils/designerpaths.cpp b/src/plugins/qmldesignerbase/utils/designerpaths.cpp
index b4ad03ba71..d4ae2a4645 100644
--- a/src/plugins/qmldesignerbase/utils/designerpaths.cpp
+++ b/src/plugins/qmldesignerbase/utils/designerpaths.cpp
@@ -12,9 +12,7 @@ namespace QmlDesigner::Paths {
Utils::FilePath defaultExamplesPath()
{
- QStandardPaths::StandardLocation location = Utils::HostOsInfo::isMacHost()
- ? QStandardPaths::HomeLocation
- : QStandardPaths::DocumentsLocation;
+ QStandardPaths::StandardLocation location = QStandardPaths::DocumentsLocation;
return Utils::FilePath::fromString(QStandardPaths::writableLocation(location))
.pathAppended("QtDesignStudio/examples");