aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-01-14 22:39:04 +0100
committerRenaud G <renaud@rolisteam.org>2017-01-14 22:39:04 +0100
commit7a5bc0677e5e7f6d72fb4432672bc309f7ff61da (patch)
tree4b6d356b4a82d7ca704f4850db4a226891b52509 /diceparser.cpp
parent9189e58f97f9f5d04e1a8063eb54c927278b9876 (diff)
downloadOneRoll-7a5bc0677e5e7f6d72fb4432672bc309f7ff61da.tar.gz
OneRoll-7a5bc0677e5e7f6d72fb4432672bc309f7ff61da.zip
-fix help command.
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index e71a24c..f2e3104 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -682,7 +682,10 @@ bool DiceParser::readCommand(QString& str,ExecutionNode* & node)
if(str== QLatin1String("help"))
{
HelpNode* help = new HelpNode();
- help->setHelpPath(m_helpPath);
+ if(!m_helpPath.isEmpty())
+ {
+ help->setHelpPath(m_helpPath);
+ }
node = help;
}