From: vsv Date: Mon, 2 Sep 2019 14:47:34 +0000 (+0300) Subject: Issue #2957: Set path to help files on filters X-Git-Tag: VEDF2019Lot4~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f5d27c9bc943b3e1fb705aad3de8cdc45b5e023a;p=modules%2Fshaper.git Issue #2957: Set path to help files on filters --- diff --git a/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp b/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp index c25eef99d..10437dca0 100644 --- a/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSelectionFilter.cpp @@ -52,6 +52,7 @@ #include #include #include +#include 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(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); }