r21056 by craig -

scribus-commit scribus-commit at lists.scribus.net
Fri Mar 4 22:14:34 UTC 2016


Author: craig
Date: Fri Mar  4 22:14:34 2016
New Revision: 21056

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21056
Log:
Move file close earlier and clean

Modified:
    trunk/Scribus/scribus/util_file.cpp

Modified: trunk/Scribus/scribus/util_file.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21056&path=/trunk/Scribus/scribus/util_file.cpp
==============================================================================
--- trunk/Scribus/scribus/util_file.cpp	(original)
+++ trunk/Scribus/scribus/util_file.cpp	Fri Mar  4 22:14:34 2016
@@ -298,14 +298,10 @@
 			QList<QByteArray> fileData(ba_hash.split(' '));
 			QCryptographicHash ch(method);
 			ch.addData(&source);
+			source.close();
 			if (fileData[0] == ch.result().toHex() && fileData[1] == filename)
-			{
-				//qDebug()<<"checkFileHash: checksum successful for"<<directory<<filename;
-				source.close();
 				return true;
-			}
-			else
-				qDebug()<<"checkFileHash: checksum failed for"<<directory<<filename;
+			qDebug()<<"checkFileHash: checksum failed for"<<directory<<filename;
 		}
 	}
 	else




More information about the scribus-commit mailing list