summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/server.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index 5d72098..83d9157 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -135,9 +135,9 @@ static std::string handleTransaction(Transaction &transaction)
answer += " <macro name=\"" + macro.attributes["name"] + "\" completed=";
if(db.checkMacro(transaction.cpr, macro.attributes["name"])) answer += "\"true\"";
else answer += "\"false\"";
- answer += ">\n";
if(macro.attributes["name"] == request.macro) {
+ answer += ">\n";
foundmacro = true;
@@ -192,6 +192,14 @@ static std::string handleTransaction(Transaction &transaction)
}
answer += widgetgenerator(transaction.cpr, *m, lqm, db);
+ } else {
+ // only find macro title
+ MacroParser mp(macro.attributes["name"]);
+ mp.parse();
+ Macro *m = mp.getMacro();
+ answer += "caption=\"" + m->window.attributes["caption"] + "\"";
+ answer += ">\n";
+
}
answer += " </macro>\n";
mi2++;