From 2edb9c4e328eec77e0a56178771a40af4574e5fa Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Fri, 14 Mar 2008 15:18:04 -0400 Subject: 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. --- Source/QtDialog/CMakeSetup.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index e90ed16..bdc8a66 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/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++) { -- cgit v0.12