diff --git a/src/gui/properties/trackerlistwidget.cpp b/src/gui/properties/trackerlistwidget.cpp index 5cc6d1d02..b4c5b21f6 100644 --- a/src/gui/properties/trackerlistwidget.cpp +++ b/src/gui/properties/trackerlistwidget.cpp @@ -445,7 +445,7 @@ void TrackerListWidget::copyTrackerUrl() for (const QTreeWidgetItem *item : selectedTrackerItems) { QString trackerURL = item->data(COL_URL, Qt::DisplayRole).toString(); - qDebug() << "Copy: " + trackerURL; + qDebug() << "Copy:" << qUtf8Printable(trackerURL); urlsToCopy << trackerURL; } QApplication::clipboard()->setText(urlsToCopy.join(u'\n')); diff --git a/src/webui/api/synccontroller.cpp b/src/webui/api/synccontroller.cpp index c0c645d8b..929190c0a 100644 --- a/src/webui/api/synccontroller.cpp +++ b/src/webui/api/synccontroller.cpp @@ -215,8 +215,8 @@ namespace break; default: Q_ASSERT_X(false, "processMap" - , QString("Unexpected type: %1") - .arg(QMetaType::typeName(static_cast(value.type()))) + , u"Unexpected type: %1"_qs + .arg(QString::fromLatin1(QMetaType::typeName(static_cast(value.type())))) .toUtf8().constData()); } }