From 123a6aa21f46af7b40a2b6b46a61c994eaf5ad37 Mon Sep 17 00:00:00 2001 From: "Xawotihs@gmail.com" Date: Wed, 26 Dec 2012 18:14:27 +0000 Subject: [PATCH] Fixed remote hash retrieval --- JGE/src/qt/filedownloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JGE/src/qt/filedownloader.cpp b/JGE/src/qt/filedownloader.cpp index 8dc16d7dd..76bd1cfed 100644 --- a/JGE/src/qt/filedownloader.cpp +++ b/JGE/src/qt/filedownloader.cpp @@ -87,8 +87,8 @@ void FileDownloader::computeRemoteHash() } else { QString aString = m_hashReply->readAll(); - int index = aString.indexOf("SHA1 Checksum: "); - m_remoteHash = aString.mid(index+52, 40); + int index = aString.indexOf(""); + m_remoteHash = aString.mid(index+16, 40); if(m_localHash != m_remoteHash) { /* We download the real file */ m_state = DOWNLOADING_FILE;