More Mac OS fixes for Qt5.

This commit is contained in:
lotodore
2013-08-31 21:37:06 +02:00
parent ec3c2eee84
commit f29efc2892
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ int main( int argc, char **argv )
#ifdef __APPLE__
// The following needs to be done directly after the application is created.
QDir dir(QApplication::applicationDirPath());
QDir dir(argv[0]);
dir.cdUp();
dir.cdUp();
dir.cd("plugins");
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));