Don't "fail" loading speech commands if none to load

This commit is contained in:
David Rowe 2014-10-24 17:45:37 -07:00
parent 8fb1d22646
commit 55436eba9a

View file

@ -144,7 +144,7 @@ void SpeechRecognizer::removeCommand(const QString& command) {
}
void SpeechRecognizer::reloadCommands() {
if (!_enabled) {
if (!_enabled || _commands.count() == 0) {
return;
}