summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-02-22 17:29:28 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-02-22 17:10:19 +0000
commitd8b5d2b7a552547d0c5d4d1ba904fbde76a319a2 (patch)
treef7b6b0349bf0178345bedfcdb3f15f3e35699f82
parent7dd05f8937e484344a5525b2e62cdf5283c0a639 (diff)
downloadqt-creator-d8b5d2b7a552547d0c5d4d1ba904fbde76a319a2.tar.gz
StudioWelcome: Download examples to home on macOS
Task-number: QDS-6305 Change-Id: I7e80ec6a8d5d79b75412fee975efaedd92e048d0 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index 8e38dccc6b..ab4cf65f19 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -660,8 +660,11 @@ void StudioWelcomePlugin::resumeRemoveSplashTimer()
Utils::FilePath StudioWelcomePlugin::defaultExamplesPath()
{
- return Utils::FilePath::fromString(
- QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation))
+ QStandardPaths::StandardLocation location = Utils::HostOsInfo::isMacHost()
+ ? QStandardPaths::HomeLocation
+ : QStandardPaths::DocumentsLocation;
+
+ return Utils::FilePath::fromString(QStandardPaths::writableLocation(location))
.pathAppended("QtDesignStudio");
}