summaryrefslogtreecommitdiffstats
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorVolcaEM <63682805+VolcaEM@users.noreply.github.com>2020-06-25 23:31:01 +0200
committerGitHub <noreply@github.com>2020-06-25 23:31:01 +0200
commit9e7ac6a009002aacba48f9c167efc58cfe34241d (patch)
treeac9da22084dcfb62b77f2f968fa6526b96f021e8 /src/yuzu/main.cpp
parentUse QUrl (1/2) (diff)
downloadyuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.tar
yuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.tar.gz
yuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.tar.bz2
yuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.tar.lz
yuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.tar.xz
yuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.tar.zst
yuzu-9e7ac6a009002aacba48f9c167efc58cfe34241d.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/main.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index e454347d9..a2f637b96 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1801,26 +1801,25 @@ void GMainWindow::OnMenuReportCompatibility() {
}
}
-void GMainWindow::OpenURL(const QString& url_str) {
+void GMainWindow::OpenURL(QUrl const& url) {
- const QUrl url{url_str};
const bool open = QDesktopServices::openUrl(url);
if (!open) {
QMessageBox::warning(this, tr("Error opening URL"),
- tr("Unable to open the URL \"%1\".").arg(url_str));
+ tr("Unable to open the URL \"%1\".").arg(url.toString()));
}
}
void GMainWindow::OnOpenModsPage() {
- this->OpenURL(QStringLiteral("https://github.com/yuzu-emu/yuzu/wiki/Switch-Mods"));
+ OpenURL(QUrl(QStringLiteral("https://github.com/yuzu-emu/yuzu/wiki/Switch-Mods")));
}
void GMainWindow::OnQuickstartGuide() {
- this->OpenURL(QStringLiteral("https://yuzu-emu.org/help/quickstart/"));
+ OpenURL(QUrl(QStringLiteral("https://yuzu-emu.org/help/quickstart/")));
}
void GMainWindow::OnFAQ() {
- this->OpenURL(QStringLiteral("https://yuzu-emu.org/wiki/faq/"));
+ OpenURL(QUrl(QStringLiteral("https://yuzu-emu.org/wiki/faq/")));
}
void GMainWindow::ToggleFullscreen() {