diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2017-12-05 06:34:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-05 06:34:47 +0200 |
| commit | fa598e86dbce096b5439ae704dd18cc5b1289191 (patch) | |
| tree | 66f9ecd51775c9e184b1679fc2d6fecc74fb1d8a /src/selfupdater.cpp | |
| parent | c64e12a289066c6b4834c43a49ff631a33b2f3ce (diff) | |
| parent | ffdc5ca7ccb24bc937ed5418b7a6e5a1b7d719dd (diff) | |
Merge pull request #135 from LePresidente/QT5.7
All changes done for 2.1.0
Diffstat (limited to 'src/selfupdater.cpp')
| -rw-r--r-- | src/selfupdater.cpp | 6 |
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()
|
