]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for jenkins
authornds <nds@opencascade.com>
Thu, 2 Nov 2017 15:59:03 +0000 (18:59 +0300)
committernds <nds@opencascade.com>
Thu, 2 Nov 2017 15:59:03 +0000 (18:59 +0300)
src/XGUI/XGUI_Workshop.cpp

index 43f6f446eb4863ce024be4a2b97bd6d10c291404..e3bca97c24195b48e6505d4a8051694d98398333 100755 (executable)
@@ -295,10 +295,10 @@ void XGUI_Workshop::startApplication()
   Config_PropManager::registerProp("Plugins", "default_path", "Default Path",
                                    Config_Prop::Directory, "");
 
-  QString aDefaultPath = QString("%1Resources").arg(ModuleBase_Preferences::resourceMgr()->appName());
-  std::string aDir = getenv(aDefaultPath.toLatin1());
-  Config_PropManager::registerProp("Plugins", "combo_box_elements_path", "ComboBox elements directory",
-                                   Config_Prop::Directory, aDir);
+  std::string aDir = getenv(QString("%1Resources").arg(
+    ModuleBase_Preferences::resourceMgr()->appName()).toLatin1());
+  Config_PropManager::registerProp("Plugins", "combo_box_elements_path",
+    "ComboBox elements directory", Config_Prop::Directory, aDir);
   Config_PropManager::registerProp("Plugins", "import_initial_path", "Import initial directory",
                                    Config_Prop::Directory, aDir);