summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLePresidente <brian.alexander.munro@gmail.com>2017-10-23 18:33:42 +0200
committerLePresidente <brian.alexander.munro@gmail.com>2017-10-23 18:33:42 +0200
commit03608230acd0faa7d5fefdc11c75713a0b6c733e (patch)
tree9f211f042d601401ae5cb756450aefdd1823fb3b
parentb09f8ce7b40a64fa6ac6cdf2dd1a8acdfb736204 (diff)
added a catch all for the remote version check when checking for updates. Should stop a hard crash but should probably be reviewed at a date.
-rw-r--r--src/selfupdater.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp
index d78b020b..273e9b45 100644
--- a/src/selfupdater.cpp
+++ b/src/selfupdater.cpp
@@ -124,6 +124,7 @@ void SelfUpdater::testForUpdate()
{
// TODO: if prereleases are disabled we could just request the latest release
// directly
+ try {
m_GitHub.releases(GitHub::Repository("LePresidente", "modorganizer"),
[this](const QJsonArray &releases) {
QJsonObject newest;
@@ -155,6 +156,11 @@ void SelfUpdater::testForUpdate()
}
}
});
+ }
+ //Catch all is bad by design, should be improved
+ catch (...) {
+ qDebug("Unable to connect to github.com to check version");
+ }
}
void SelfUpdater::startUpdate()