Fix CXPlaneUtil::xplane10Dir() on Mac OS

Q_OS_UNIX is also defined on Mac OS, therefore the Q_OS_OSX branch
was never reached.
This concludes the test of this function on Mac OS and the todos
can be removed.
This commit is contained in:
Roland Winklmeier
2017-01-20 22:51:25 +01:00
committed by Mathew Sutcliffe
parent a74fcc3a7c
commit d8de6bc398
2 changed files with 1 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ namespace BlackMisc
QString xplaneInstallFile = QStringLiteral("/x-plane_install_10.txt");
#if defined(Q_OS_WIN)
xplaneInstallFilePath = getWindowsLocalAppDataPath() + xplaneInstallFile;
#elif defined (Q_OS_UNIX)
#elif defined (Q_OS_LINUX)
xplaneInstallFilePath = QDir::homePath() + QStringLiteral("/.x-plane") + xplaneInstallFile;
#elif defined (Q_OS_OSX)
xplaneInstallFilePath = QDir::homePath() + QStringLiteral("/Library/Preferences") + xplaneInstallFile;