From 4ee52afc4d0c408d870dd2799435372084e19ed1 Mon Sep 17 00:00:00 2001 From: Heejune Kim Date: Fri, 18 Dec 2015 10:48:29 +0900 Subject: [PATCH] Fix a build error when TDESKTOP_DISABLE_AUTOUPDATE preprocessor defined Signed-off-by: Heejune Kim (github: heejune) --- Telegram/SourceFiles/autoupdater.cpp | 3 ++- Telegram/SourceFiles/autoupdater.h | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/autoupdater.cpp b/Telegram/SourceFiles/autoupdater.cpp index d560cfbc6..a34a471c6 100644 --- a/Telegram/SourceFiles/autoupdater.cpp +++ b/Telegram/SourceFiles/autoupdater.cpp @@ -569,6 +569,8 @@ bool checkReadyUpdate() { return true; } +#endif + QString countBetaVersionSignature(uint64 version) { // duplicated in packer.cpp if (cBetaPrivateKey().isEmpty()) { LOG(("Error: Trying to count beta version signature without beta private key!")); @@ -613,4 +615,3 @@ QString countBetaVersionSignature(uint64 version) { // duplicated in packer.cpp return QString::fromUtf8(signature.mid(19, 32)); } -#endif diff --git a/Telegram/SourceFiles/autoupdater.h b/Telegram/SourceFiles/autoupdater.h index 0bee6fae3..e15d7fe09 100644 --- a/Telegram/SourceFiles/autoupdater.h +++ b/Telegram/SourceFiles/autoupdater.h @@ -66,6 +66,11 @@ private: bool checkReadyUpdate(); -QString countBetaVersionSignature(uint64 version); +#else +class UpdateDownloader : public QObject { + Q_OBJECT +}; #endif + +QString countBetaVersionSignature(uint64 version);