@@ -82,7 +82,7 @@ class BitBoxApp : public SingleApplication
82
82
// if the BitBoxApp is launched and also when it is already running, in which case
83
83
// it is brought to the foreground automatically.
84
84
85
- handleURI (openEvent->url ().toString ().toLocal8Bit ().constData ());
85
+ handleURI (openEvent->url ().toString ().toUtf8 ().constData ());
86
86
}
87
87
}
88
88
@@ -103,7 +103,7 @@ class WebEnginePage : public QWebEnginePage {
103
103
{
104
104
// Log frontend console messages to the Go log.txt.
105
105
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 ());
107
107
}
108
108
};
109
109
@@ -127,7 +127,7 @@ class RequestInterceptor : public QWebEngineUrlRequestInterceptor {
127
127
if (onBuyPage || onBitsurancePage) {
128
128
if (info.firstPartyUrl ().toString () == info.requestUrl ().toString ()) {
129
129
// A link with target=_blank was clicked.
130
- systemOpen (info.requestUrl ().toString ().toLocal8Bit ().constData ());
130
+ systemOpen (info.requestUrl ().toString ().toUtf8 ().constData ());
131
131
// No need to also load it in our page.
132
132
info.block (true );
133
133
}
@@ -407,11 +407,11 @@ int main(int argc, char *argv[])
407
407
[&](int instanceId, QByteArray message) {
408
408
QString arg = QString::fromUtf8 (message);
409
409
qDebug () << " Received arg from secondary instance:" << arg;
410
- handleURI (arg.toLocal8Bit ().constData ());
410
+ handleURI (arg.toUtf8 ().constData ());
411
411
});
412
412
// Handle URI which the app was launched with in the primary instance.
413
413
if (a.arguments ().size () == 2 ) {
414
- handleURI (a.arguments ()[1 ].toLocal8Bit ().constData ());
414
+ handleURI (a.arguments ()[1 ].toUtf8 ().constData ());
415
415
}
416
416
417
417
return a.exec ();
0 commit comments