Fixing a lot of Mac issues with the current Qt release.

This commit is contained in:
lotodore
2010-07-08 17:04:17 +00:00
parent f761f3d63f
commit 09c1181a56
+8 -8
View File
@@ -91,6 +91,14 @@ int main( int argc, char **argv )
return 0;
}
#ifdef __APPLE__
// The following needs to be done directly after the application is created.
QDir dir(QApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
#endif
//create defaultconfig
ConfigFile *myConfig = new ConfigFile(argv[0], false);
@@ -133,14 +141,6 @@ int main( int argc, char **argv )
translator.load(QString(myAppDataPath +"translations/pokerth_") + QString::fromStdString(myConfig->readConfigString("Language")));
a.installTranslator(&translator);
#ifdef __APPLE__
QDir dir(QApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
#endif
qRegisterMetaType<unsigned>("unsigned");
qRegisterMetaType<boost::shared_ptr<Game> >("boost::shared_ptr<Game>");
qRegisterMetaType<ServerStats>("ServerStats");