From c98cbcbf0f331e860cb747253380df166d26b36a Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Thu, 2 Jan 2014 19:06:52 +0000 Subject: [PATCH] Log if fail to open file --- http/httpsocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/http/httpsocket.cpp b/http/httpsocket.cpp index 6883d9eeb..97c2b496b 100644 --- a/http/httpsocket.cpp +++ b/http/httpsocket.cpp @@ -433,7 +433,7 @@ void HttpSocket::readClient() QFile f(song.file); - if (f.open(QIODevice::ReadOnly)) { + if (f.open(QIODevice::ReadOnly)) { qint32 totalBytes = f.size(); writeMimeType(detectMimeType(song.file), socket, readBytesFrom, totalBytes, true); @@ -464,6 +464,8 @@ void HttpSocket::readClient() } } while (readPos