Mercurial > trustbridge
changeset 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 | 8f50533027af |
children | bd26fc6893e3 |
files | ui/installwrapper.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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; } }