Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/installwrapper.cpp Tue Apr 22 13:00:15 2014 +0000 +++ b/ui/installwrapper.cpp Tue Apr 22 16:26:16 2014 +0200 @@ -43,10 +43,10 @@ } foreach (const QString &b64data, mChoices) { - if (!choicesFile->write(b64data.toLatin1())) { + if (choicesFile->write(b64data.toLatin1()) == -1) { return false; } - if (!choicesFile->write("\n")) { + if (choicesFile->write("\n") == -1) { return false; } }