<workbench id="Macros" document="Part">
<group id="Samples">
- <feature id="Box_script" title="Box" tooltip="Create a box parallel to xyz by extruding a rectangular" icon="icons/Addons/box_ico.png">
+ <feature id="Box_script" title="Box" tooltip="Create a box parallel to xyz by extruding a rectangular" icon="icons/Addons/box_ico.png"
+ helpfile="boxFeature.html">
<doublevalue id="width" label="Width: " min="0" step="1.0" default="50" tooltip="Box width">
<validator id="GeomValidators_Positive"/>
</doublevalue>
QString aDir(getenv("OPENPARTS_ROOT_DIR"));
aDocDir = aDir + aSep + "doc" + aSep + "gui";
#endif
- QStringList aParams;
- aParams << aDocDir + aSep + aHelpPage;
- QProcess::startDetached(aBrowserName, aParams);
+ QString aFileName = aDocDir + aSep + aHelpPage;
+ if (QFile::exists(aFileName)) {
+ QStringList aParams;
+ aParams << aFileName;
+ QProcess::startDetached(aBrowserName, aParams);
+ }
}
}
}