Enforce Cutter-local sleighhome on macOS only if Packaging is Enabled (#2741)

This commit is contained in:
Florian Märkl 2021-09-10 17:53:42 +02:00 committed by GitHub
parent 3c4fe781ab
commit 394a1eb27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ CutterApplication::CutterApplication(int &argc, char **argv) : QApplication(argc
}
#endif
#ifdef Q_OS_MACOS
#if defined(Q_OS_MACOS) && defined(CUTTER_ENABLE_PACKAGING)
{
auto rzprefix = QDir(QCoreApplication::applicationDirPath()); // Contents/MacOS
rzprefix.cdUp(); // Contents