]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
correction for the name of help file
authorasl <asl@opencascade.com>
Mon, 16 Nov 2015 12:46:56 +0000 (15:46 +0300)
committerasl <asl@opencascade.com>
Mon, 16 Nov 2015 12:46:56 +0000 (15:46 +0300)
src/HYDROGUI/HYDROGUI_Operation.cxx

index e40ff69de68a57e55bf94a9137603fe1e5d04a0f..916a5a682337401c496904920d98e86906c23399 100644 (file)
@@ -449,8 +449,12 @@ QString HYDROGUI_Operation::getHelpComponent() const
 
 QString HYDROGUI_Operation::getHelpFile() const
 {
-   QString aFileName = ((myName.isEmpty())? operationName() : myName);
-   return aFileName.replace(QRegExp("\\s"), "_").append(".html");
+  QString aFileName = ((myName.isEmpty())? operationName() : myName);
+  aFileName = aFileName.toLower();
+  aFileName = aFileName.replace(QRegExp("\\s"), "_").append(".html");
+  aFileName.remove( "create_" );
+  aFileName.remove( "edit_" );
+  return aFileName;
 }
 
 QString HYDROGUI_Operation::getHelpContext() const