diff options
author | Benjamin Dobell <benjamin.dobell@glassechidna.com.au> | 2011-07-09 09:37:36 +0200 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell@glassechidna.com.au> | 2011-07-09 09:37:36 +0200 |
commit | bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e (patch) | |
tree | c0199127003c2d5418fa6b10fb0676c7abcb0a7e /heimdall-frontend/Source/mainwindow.cpp | |
parent | 1.3 beta (diff) | |
download | Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.tar Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.tar.gz Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.tar.bz2 Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.tar.lz Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.tar.xz Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.tar.zst Heimdall-bf17bbf5736e4774b1ac8e18698bc2fcf6ff9a1e.zip |
Diffstat (limited to '')
-rw-r--r-- | heimdall-frontend/Source/mainwindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/heimdall-frontend/Source/mainwindow.cpp b/heimdall-frontend/Source/mainwindow.cpp index f5880f9..a777c77 100644 --- a/heimdall-frontend/Source/mainwindow.cpp +++ b/heimdall-frontend/Source/mainwindow.cpp @@ -343,12 +343,14 @@ void MainWindow::SelectFirmwarePackage(void) void MainWindow::OpenDeveloperHomepage(void)
{
- QDesktopServices::openUrl(QUrl(loadedPackageData.GetFirmwareInfo().GetUrl(), QUrl::TolerantMode));
+ if(!QDesktopServices::openUrl(QUrl(loadedPackageData.GetFirmwareInfo().GetUrl(), QUrl::TolerantMode)))
+ Alerts::DisplayWarning(QString("Cannot open invalid URL:\n%1").arg(loadedPackageData.GetFirmwareInfo().GetUrl()));
}
void MainWindow::OpenDeveloperDonationWebpage(void)
{
- QDesktopServices::openUrl(QUrl(loadedPackageData.GetFirmwareInfo().GetDonateUrl(), QUrl::TolerantMode));
+ if (!QDesktopServices::openUrl(QUrl(loadedPackageData.GetFirmwareInfo().GetDonateUrl(), QUrl::TolerantMode)))
+ Alerts::DisplayWarning(QString("Cannot open invalid URL:\n%1").arg(loadedPackageData.GetFirmwareInfo().GetDonateUrl()));
}
void MainWindow::LoadFirmwarePackage(void)
|