Skip to content
Permalink
Browse files

Fix missing update check failure message

We always want to log when the updatecheck fails.
As it was, when the info was logged was backwards.
Now it always logs.
  • Loading branch information...
Kissaki committed Jul 14, 2016
1 parent 72cd86c commit edba74583726e107a4f21edafdcb740f61e9f462
Showing with 1 addition and 5 deletions.
  1. +1 −3 src/mumble/VersionCheck.cpp
  2. +0 −2 src/mumble/VersionCheck.h
@@ -12,8 +12,6 @@
#include "WebFetch.h"

VersionCheck::VersionCheck(bool autocheck, QObject *p, bool focus) : QObject(p) {
bSilent = autocheck;

QUrl url;
url.setPath(focus ? QLatin1String("/v1/banner") : QLatin1String("/v1/version-check"));

@@ -184,7 +182,7 @@ void VersionCheck::fetched(QByteArray a, QUrl url) {
g.mw->msgBox(QString::fromUtf8(a));
#endif
}
} else if (bSilent) {
} else {
g.mw->msgBox(tr("Mumble failed to retrieve version information from the central server."));
}

@@ -14,8 +14,6 @@ class VersionCheck : public QObject {
private:
Q_OBJECT
Q_DISABLE_COPY(VersionCheck)
protected:
bool bSilent;
public slots:
void fetched(QByteArray data, QUrl url);
public:

0 comments on commit edba745

Please sign in to comment.
You can’t perform that action at this time.