Skip to content
Snippets Groups Projects
Commit d5424fdf authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

webview: remove warnings

Change-Id: I1885e6e3fe926bb52adb8486bfa94a3a64a751fa
parent f9465493
No related branches found
No related tags found
No related merge requests found
......@@ -221,8 +221,10 @@ MessageWebView::setSenderImage(const std::string& sender,
void
MessageWebView::setInvitation(bool show, const std::string& contactUri, const std::string& contactId)
{
QString s = QString::fromLatin1(show ? "showInvitation(\"%1\", \"%2\")" : "showInvitation()")
.arg(QString(contactUri.c_str())).arg(QString(contactId.c_str()));
QString s = show ? QString::fromLatin1("showInvitation(\"%1\", \"%2\")")
.arg(QString(contactUri.c_str()))
.arg(QString(contactId.c_str())) : QString::fromLatin1("showInvitation()");
page()->runJavaScript(s, QWebEngineScript::MainWorld);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment