mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-29 19:15:38 +00:00
Qt: Narrowing warning fix
This commit is contained in:
parent
7290e5cad0
commit
97ea851097
|
@ -176,7 +176,7 @@ void MainWindow::onStartBiosActionTriggered()
|
||||||
|
|
||||||
static void OpenURL(QWidget* parent, const char* url)
|
static void OpenURL(QWidget* parent, const char* url)
|
||||||
{
|
{
|
||||||
const QUrl qurl(QUrl::fromEncoded(QByteArray(url, std::strlen(url))));
|
const QUrl qurl(QUrl::fromEncoded(QByteArray(url, static_cast<int>(std::strlen(url)))));
|
||||||
if (!QDesktopServices::openUrl(qurl))
|
if (!QDesktopServices::openUrl(qurl))
|
||||||
{
|
{
|
||||||
QMessageBox::critical(parent, QObject::tr("Failed to open URL"),
|
QMessageBox::critical(parent, QObject::tr("Failed to open URL"),
|
||||||
|
|
Loading…
Reference in a new issue