Skip to content
Snippets Groups Projects
Commit 8633be3d authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

fix set target in buttons

parent 8cb9e38e
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ void Alarmmanager::m_tag_written(QObject *writer) {
const QString &tgtd = ma.capturedTexts()[1];
printf("current dev is %s target dev is %s\n", qstoc(dev), qstoc(tgtd));
}
if(ma.capturedTexts().size() == 2 && ma.capturedTexts()[1] != dev) {
if(t.isEmpty() || (ma.capturedTexts().size() == 2 && ma.capturedTexts()[1] != dev)) {
t = dev + "->" + b->property("cmd").toString();
printf("\e[1;31msetting target on button %s: %s\e[0m\n", qstoc(b->objectName()), qstoc(t));
b->setTarget(t);
......
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