Commit f4342efc authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

fix setResult(QDataStream *)

it was apparent only with qt 4.8
parent 9e6448d3
......@@ -167,8 +167,7 @@ bool FileSaverBase::setResult(QTextStream *stream)
bool FileSaverBase::setResult(QDataStream *stream)
{
#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
stream->flush();
return setResult(stream->status() == QTextStream::Ok);
return setResult(stream->status() == QDataStream::Ok);
#else
Q_UNUSED(stream)
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment