summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-12-28 01:25:33 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-12-28 01:25:33 -0500
commit51db1f99f0c4cddc0af224d46d6e5679d18d2a53 (patch)
treeddb11e4aef19b1d428c9f71bdc734e59b2e2d25d /src/mainwindow.cpp
parent106ed49baecc60dbdf4844ed684df750e5caf3aa (diff)
custom browser command
changed some places that used QDesktopServices to use shell::Open() from uibase instead
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 5ddc489c..1e7741ac 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1678,7 +1678,7 @@ void MainWindow::registerModPage(IPluginModPage *modPage)
m_IntegratedBrowser->openUrl(modPage->pageURL());
}
else {
- QDesktopServices::openUrl(QUrl(modPage->pageURL()));
+ shell::Open(QUrl(modPage->pageURL()));
}
}, Qt::QueuedConnection);
@@ -2408,17 +2408,17 @@ void MainWindow::helpTriggered()
void MainWindow::wikiTriggered()
{
- QDesktopServices::openUrl(QUrl("https://modorganizer2.github.io/"));
+ shell::Open(QUrl("https://modorganizer2.github.io/"));
}
void MainWindow::discordTriggered()
{
- QDesktopServices::openUrl(QUrl("https://discord.gg/cYwdcxj"));
+ shell::Open(QUrl("https://discord.gg/cYwdcxj"));
}
void MainWindow::issueTriggered()
{
- QDesktopServices::openUrl(QUrl("https://github.com/Modorganizer2/modorganizer/issues"));
+ shell::Open(QUrl("https://github.com/Modorganizer2/modorganizer/issues"));
}
void MainWindow::tutorialTriggered()
@@ -5177,13 +5177,13 @@ void MainWindow::on_actionNexus_triggered()
QString gameName = game->gameShortName();
if (game->gameNexusName().isEmpty() && game->primarySources().count())
gameName = game->primarySources()[0];
- QDesktopServices::openUrl(QUrl(NexusInterface::instance().getGameURL(gameName)));
+ shell::Open(QUrl(NexusInterface::instance().getGameURL(gameName)));
}
void MainWindow::linkClicked(const QString &url)
{
- QDesktopServices::openUrl(QUrl(url));
+ shell::Open(QUrl(url));
}