]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2957: Set path to help files on filters
authorvsv <vsv@opencascade.com>
Mon, 2 Sep 2019 14:47:34 +0000 (17:47 +0300)
committervsv <vsv@opencascade.com>
Mon, 2 Sep 2019 14:47:34 +0000 (17:47 +0300)
src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp

index c25eef99d3360b250fc928690ff1629bd8d88b6d..10437dca097d5844528e9b04e863f2cc412fc492 100644 (file)
@@ -52,6 +52,7 @@
 #include <QDialog>
 #include <QToolButton>
 #include <QCheckBox>
+#include <QDir>
 
 static FeaturePtr SelectorFeature;
 static std::string AttributeId;
@@ -98,6 +99,9 @@ ModuleBase_FilterStarter::ModuleBase_FilterStarter(const std::string& theFeature
 
 void ModuleBase_FilterStarter::onFiltersLaunch()
 {
+  static QString aHelpFileName = QString("FiltersPlugin") + QDir::separator() +
+    QString("FiltersPlugin.html");
+
   ModuleBase_Operation* aParentOp = myWorkshop->currentOperation();
   ModuleBase_OperationFeature* aFeatureOp = dynamic_cast<ModuleBase_OperationFeature*>(aParentOp);
   if (aFeatureOp)
@@ -124,7 +128,7 @@ void ModuleBase_FilterStarter::onFiltersLaunch()
   FiltersFeaturePtr aFilters = aAttrList->filters();
   if (aFilters.get())
     aFOperation->setFeature(aFilters);
-  aFOperation->setHelpFileName("FiltersPlugin.html");
+  aFOperation->setHelpFileName(aHelpFileName);
   myWorkshop->processLaunchOperation(aFOperation);
 }