diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-09-10 22:56:04 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-09-16 09:21:40 +0000 |
commit | b88de51cbc08239ffa91b38a63b23273fce1633c (patch) | |
tree | 4c655eb8676f9d39f4c6d0a0efa613b178a990fb /src | |
parent | ffe52196c36f954b0eb8ee9619973cadef673fe0 (diff) | |
download | qt-creator-b88de51cbc08239ffa91b38a63b23273fce1633c.tar.gz |
Main: Replace macro usage with HostOsInfo
Change-Id: I6ac6cbe39ba6552b30dc109a2310bff8c16b84e0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/app/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index b0ff19def4..c364b4d4b7 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -222,9 +222,8 @@ static inline QStringList getPluginPaths() // "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux // "~/Library/Application Support/QtProject/Qt Creator" on Mac pluginPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation); -#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) - pluginPath += QLatin1String("/data"); -#endif + if (Utils::HostOsInfo::isAnyUnixHost() && !Utils::HostOsInfo::isMacHost()) + pluginPath += QLatin1String("/data"); pluginPath += QLatin1Char('/') + QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR) + QLatin1Char('/'); |