mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 12:53:41 +01:00
Get the right appDataDir with Qt5
This commit is contained in:
parent
80f12c3410
commit
b4cd4ed5ef
@ -165,7 +165,7 @@ appDataDir()
|
||||
{
|
||||
QString path;
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN
|
||||
if ( ( QSysInfo::WindowsVersion & QSysInfo::WV_DOS_based ) == 0 )
|
||||
{
|
||||
// Use this for non-DOS-based Windowses
|
||||
@ -177,9 +177,9 @@ appDataDir()
|
||||
path = QString::fromLocal8Bit( acPath );
|
||||
}
|
||||
}
|
||||
#elif defined(Q_WS_MAC)
|
||||
#elif defined(Q_OS_MAC)
|
||||
path = appSupportFolderPath();
|
||||
#elif defined(Q_WS_X11)
|
||||
#elif defined(Q_OS_LINUX)
|
||||
path = QDir::home().filePath( ".local/share" );
|
||||
#else
|
||||
path = QCoreApplication::applicationDirPath();
|
||||
|
Loading…
x
Reference in New Issue
Block a user