mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
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:
committed by
Mathew Sutcliffe
parent
a74fcc3a7c
commit
d8de6bc398
@@ -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;
|
||||
|
||||
@@ -30,11 +30,9 @@ namespace BlackMisc
|
||||
CXPlaneUtil() = delete;
|
||||
|
||||
//! XPlane 9 directory
|
||||
//! \todo Test on OSX
|
||||
static QString xplane9Dir();
|
||||
|
||||
//! XPlane 10 directory
|
||||
//! \todo Test on OSX
|
||||
static QString xplane10Dir();
|
||||
|
||||
//! XPlane root directory
|
||||
|
||||
Reference in New Issue
Block a user