Skip to content

Commit

Permalink
Merge PR #2424: Fix updatecheck result logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrautz committed Jul 18, 2016
2 parents ac134d3 + edba745 commit af38fdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/mumble/VersionCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down Expand Up @@ -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."));
}

Expand Down
2 changes: 0 additions & 2 deletions src/mumble/VersionCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit af38fdb

Please sign in to comment.