mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Replace Q_OS_MAC with Q_OS_MACOS
This commit is contained in:
@ -35,7 +35,7 @@ QString Static::getConfigDir()
|
||||
return configDir;
|
||||
}
|
||||
// Search config file
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MACOS
|
||||
QString binDir = (QString(DATADIR) + "/yacreader");
|
||||
#else
|
||||
QString binDir = QCoreApplication::applicationDirPath();
|
||||
|
@ -48,7 +48,7 @@ void YACReaderHttpServer::start(quint16 port)
|
||||
QString baseTemplatePath = QString("./server/templates");
|
||||
QString templatePath;
|
||||
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MACOS
|
||||
templatePath = QFileInfo(QString(DATADIR) + "/yacreader", baseTemplatePath).absoluteFilePath();
|
||||
#else
|
||||
templatePath = QFileInfo(QCoreApplication::applicationDirPath(), baseTemplatePath).absoluteFilePath();
|
||||
@ -76,7 +76,7 @@ void YACReaderHttpServer::start(quint16 port)
|
||||
QString basedocroot = "./server/docroot";
|
||||
QString docroot;
|
||||
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MACOS
|
||||
QFileInfo configFile(QString(DATADIR) + "/yacreader");
|
||||
docroot = QFileInfo(QString(DATADIR) + "/yacreader", basedocroot).absoluteFilePath();
|
||||
#else
|
||||
|
Reference in New Issue
Block a user