@@ -82,7 +82,7 @@ class BitBoxApp : public SingleApplication
8282 // if the BitBoxApp is launched and also when it is already running, in which case
8383 // it is brought to the foreground automatically.
8484
85- handleURI (openEvent->url ().toString ().toLocal8Bit ().constData ());
85+ handleURI (openEvent->url ().toString ().toUtf8 ().constData ());
8686 }
8787 }
8888
@@ -103,7 +103,7 @@ class WebEnginePage : public QWebEnginePage {
103103 {
104104 // Log frontend console messages to the Go log.txt.
105105 QString formattedMsg = QString (" msg: %1; line %2; source: %3" ).arg (message).arg (lineNumber).arg (sourceID);
106- goLog (formattedMsg.toLocal8Bit ().constData ());
106+ goLog (formattedMsg.toUtf8 ().constData ());
107107 }
108108};
109109
@@ -127,7 +127,7 @@ class RequestInterceptor : public QWebEngineUrlRequestInterceptor {
127127 if (onBuyPage || onBitsurancePage) {
128128 if (info.firstPartyUrl ().toString () == info.requestUrl ().toString ()) {
129129 // A link with target=_blank was clicked.
130- systemOpen (info.requestUrl ().toString ().toLocal8Bit ().constData ());
130+ systemOpen (info.requestUrl ().toString ().toUtf8 ().constData ());
131131 // No need to also load it in our page.
132132 info.block (true );
133133 }
@@ -407,11 +407,11 @@ int main(int argc, char *argv[])
407407 [&](int instanceId, QByteArray message) {
408408 QString arg = QString::fromUtf8 (message);
409409 qDebug () << " Received arg from secondary instance:" << arg;
410- handleURI (arg.toLocal8Bit ().constData ());
410+ handleURI (arg.toUtf8 ().constData ());
411411 });
412412 // Handle URI which the app was launched with in the primary instance.
413413 if (a.arguments ().size () == 2 ) {
414- handleURI (a.arguments ()[1 ].toLocal8Bit ().constData ());
414+ handleURI (a.arguments ()[1 ].toUtf8 ().constData ());
415415 }
416416
417417 return a.exec ();
0 commit comments