ENH: Prevent loading standard qt plugins at runtime (which we dont' care about).

This can cause problems if a Mac bundle doesn't contain the plugins.
This commit is contained in:
Clinton Stimpson 2008-03-14 15:18:04 -04:00
parent 0f005630d3
commit 2edb9c4e32
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,13 @@ int main(int argc, char** argv)
{
QApplication app(argc, argv);
// clean out standard Qt paths for plugins, which we don't use anyway
// when creating Mac bundles, it potentially causes problems
foreach(QString p, QApplication::libraryPaths())
{
QApplication::removeLibraryPath(p);
}
// if arg for install
for(int i =0; i < argc; i++)
{