Skip to content

Commit

Permalink
showExchangePopUpJs send type
Browse files Browse the repository at this point in the history
  • Loading branch information
ijanssen committed May 27, 2019
1 parent bd7ec87 commit ea56dfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JavascriptWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1800,12 +1800,14 @@ BEGIN_SLOT_WRAPPER
}

if (appType == QStringLiteral("InEvent")) {
LOG << "EVENT: " << message;
const QString event = root.value("event").toString();
if (event == QStringLiteral("showExchangePopUp")) {
const QString user = root.value("user").toString();
const QString type = root.value("type").toString();
if (user == userName) {
const QString JS_NAME_RESULT = "showExchangePopUpJs";
makeAndRunJsFuncParams(JS_NAME_RESULT, TypedException(), Opt<QString>("Ok"));
makeAndRunJsFuncParams(JS_NAME_RESULT, TypedException(), Opt<QString>(type));
}
}
}
Expand Down

0 comments on commit ea56dfa

Please sign in to comment.