浏览代码

cmake-gui: Do not remove library paths for Qt5 plugins.

Not removing library paths is necessary for QFileDialog to function correctly
on Linux when using Qt5.
Clinton Stimpson 9 年之前
父节点
当前提交
48624b3cb8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Source/QtDialog/CMakeSetup.cxx

+ 2 - 0
Source/QtDialog/CMakeSetup.cxx

@@ -101,11 +101,13 @@ int main(int argc, char** argv)
   QTextCodec::setCodecForLocale(utf8_codec);
 #endif
 
+#if QT_VERSION < 0x050000
   // 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);
   }
+#endif
 
   // tell the cmake library where cmake is
   QDir cmExecDir(QApplication::applicationDirPath());