We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ab6c9 commit 9eeb6d1Copy full SHA for 9eeb6d1
1 file changed
src/QSimpleUpdater/src/Updater.cpp
@@ -442,15 +442,14 @@ void Updater::setUpdateAvailable (const bool available)
442
box.setDefaultButton (QMessageBox::Yes);
443
444
if (box.exec() == QMessageBox::Yes) {
445
- if (!openUrl().isEmpty())
+ if (downloadUrl().isEmpty())
446
QDesktopServices::openUrl (QUrl (openUrl()));
447
448
- else if (downloaderEnabled()) {
+ if (downloaderEnabled()) {
449
m_downloader->setUrlId (url());
450
m_downloader->setFileName (downloadUrl().split ("/").last());
451
m_downloader->startDownload (QUrl (downloadUrl()));
452
}
453
-
454
else
455
QDesktopServices::openUrl (QUrl (downloadUrl()));
456
0 commit comments