tmp.append(label);
tmp.append(action);
exec(tmp);
- if(!q->first()){qDebug()<<"q-first() don't work";
- }
- int count=1;
+ q->first();
+ int count=0;
QString key=keyword, id=q->value(0).toString();
while(q->next()){
count++;
- key=key+" "+q->value(1).toString();
+ key=q->value(1).toString()+" "+key;
}
if(count==0)exec(QList<QString>({conf->value(QString("addbuttons")).toString(), label, key, action}));
else{exec(QList<QString>({conf->value(QString("updatebuttons")).toString(), key, label, action, id}));