From 3c9a9b2a49376c80576e2ef3223bf100798f91d5 Mon Sep 17 00:00:00 2001 From: tux3 Date: Fri, 22 Jan 2016 02:46:06 +0100 Subject: [PATCH] Fix #2796 --- src/net/autoupdate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/autoupdate.cpp b/src/net/autoupdate.cpp index 0088b7b81..e91a41ec5 100644 --- a/src/net/autoupdate.cpp +++ b/src/net/autoupdate.cpp @@ -86,7 +86,8 @@ bool AutoUpdater::isUpdateAvailable() if (isDownloadingUpdate) return false; - if (!QFile::exists(updaterBin)) + QString updaterPath = updaterBin.startsWith('/') ? updaterBin : qApp->applicationDirPath()+'/'+updaterBin; + if (!QFile::exists(updaterPath)) return false; QByteArray updateFlist = getUpdateFlist();