ResourceFileMapper: flush write buffer after writing

Call QFile::flush() after writing the data that was fetched from the
item. This fixes files being empty in some situations.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Tobias Doerffel
2009-06-19 11:10:38 +02:00
parent 4bc010cea9
commit c48883d41a

View File

@@ -42,6 +42,7 @@ public:
if( m_tempFile && m_tempFile->open() )
{
m_tempFile->write( m_item->fetchData() );
m_tempFile->flush();
}
}