Commit 00d389e7 authored by Pablo Rauzy's avatar Pablo Rauzy Committed by Christoph Cullmann
Browse files

fix kmplay command to give an error if the supplied name is not a macro rather...

fix kmplay command to give an error if the supplied name is not a macro rather than playing the current one
parent 49014b03
......@@ -156,7 +156,7 @@ bool KeyboardMacrosPlugin::play(const QString &name)
if (!name.isEmpty() && m_namedMacros.contains(name)) {
m = m_namedMacros.value(name);
qDebug() << "[KeyboardMacrosPlugin] playing macro:" << name;
} else if (!m_macro.isEmpty()) {
} else if (name.isEmpty() && !m_macro.isEmpty()) {
m = m_macro;
qDebug() << "[KeyboardMacrosPlugin] playing macro!";
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment