summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-03-14 19:18:04 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-03-14 19:18:04 (GMT)
commit2edb9c4e328eec77e0a56178771a40af4574e5fa (patch)
treeb77385f0046abfc1e9dee6592540be93adb91359 /Source/QtDialog/CMakeSetup.cxx
parent0f005630d371bedfaa8310978669c5a6d5f0a9b0 (diff)
downloadCMake-2edb9c4e328eec77e0a56178771a40af4574e5fa.zip
CMake-2edb9c4e328eec77e0a56178771a40af4574e5fa.tar.gz
CMake-2edb9c4e328eec77e0a56178771a40af4574e5fa.tar.bz2
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.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx7
1 files changed, 7 insertions, 0 deletions
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++)
{