From 260ea879e5c574350cc966551d161df829306560 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 31 Jul 2015 22:25:43 +0200 Subject: Make debugging cleaner Don't try to connect the globe when NOMARBLE is active. Check exisistance before trying to open an image file. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qthelper.cpp') diff --git a/qthelper.cpp b/qthelper.cpp index c6c7b9ef6..14a48c151 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -841,7 +841,7 @@ QByteArray hashFile(const QString filename) { QCryptographicHash hash(QCryptographicHash::Sha1); QFile imagefile(filename); - if (imagefile.open(QIODevice::ReadOnly)) { + if (imagefile.exists() && imagefile.open(QIODevice::ReadOnly)) { hash.addData(&imagefile); add_hash(filename, hash.result()); return hash.result(); -- cgit v1.2.3-70-g09d2