added command tab to settings but they don't save

This commit is contained in:
fourtf
2018-01-04 04:03:51 +01:00
parent 871195265a
commit 8693203c6d
5 changed files with 46 additions and 8 deletions
+4 -4
View File
@@ -38,9 +38,9 @@ void CommandManager::setCommands(const QStringList &_commands)
continue;
}
if (command.at(0) != '/') {
command = QString("/") + command;
}
// if (command.at(0) != '/') {
// command = QString("/") + command;
// }
QString commandName = command.mid(0, command.indexOf(' '));
@@ -58,7 +58,7 @@ QStringList CommandManager::getCommands()
return this->commandsStringList;
}
QString CommandManager::execCommand(QString text)
QString CommandManager::execCommand(QString text, bool dryRun)
{
Command command;
QStringList words = text.split(' ', QString::SkipEmptyParts);