From 7a5bc0677e5e7f6d72fb4432672bc309f7ff61da Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 14 Jan 2017 22:39:04 +0100 Subject: -fix help command. --- diceparser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'diceparser.cpp') 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; } -- cgit v1.2.3-70-g09d2