Fix bundle dir for macOS
This commit is contained in:
@@ -162,8 +162,9 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
QtSingleApplication a(argc, argv);
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
//QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath() + "/../PlugIns");
|
||||
#if defined(Q_OS_DARWIN) && defined(USE_BUNDLE)
|
||||
qLog(Debug) << "Looking for resources in" + QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR;
|
||||
QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR);
|
||||
#endif
|
||||
|
||||
a.setQuitOnLastWindowClosed(false);
|
||||
|
||||
Reference in New Issue
Block a user