Browse Source

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.

Clinton Stimpson 17 years ago
parent
commit
2edb9c4e32
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Source/QtDialog/CMakeSetup.cxx

+ 7 - 0
Source/QtDialog/CMakeSetup.cxx

@@ -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++)
     {