comparison ui/installwrapper.cpp @ 440:a7163018de2f

Fixed check on return value when trying to write temp file.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 22 Apr 2014 16:26:16 +0200
parents 17e1c8f37d72
children cef732072774
comparison
equal deleted inserted replaced
438:8f50533027af 440:a7163018de2f
41 if (!choicesFile->open()) { 41 if (!choicesFile->open()) {
42 return false; 42 return false;
43 } 43 }
44 44
45 foreach (const QString &b64data, mChoices) { 45 foreach (const QString &b64data, mChoices) {
46 if (!choicesFile->write(b64data.toLatin1())) { 46 if (choicesFile->write(b64data.toLatin1()) == -1) {
47 return false; 47 return false;
48 } 48 }
49 if (!choicesFile->write("\n")) { 49 if (choicesFile->write("\n") == -1) {
50 return false; 50 return false;
51 } 51 }
52 } 52 }
53 53
54 choicesFile->close(); 54 choicesFile->close();

http://wald.intevation.org/projects/trustbridge/