From 28a10ccb32bcc3043a70c402a54a8216a1a329d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 21 Feb 2022 21:04:24 +0100 Subject: [PATCH] Use unbuffered I/O as we use our own buffering --- src/map/mapsforge/mapdata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/mapsforge/mapdata.cpp b/src/map/mapsforge/mapdata.cpp index 230067ba..3269a14f 100644 --- a/src/map/mapsforge/mapdata.cpp +++ b/src/map/mapsforge/mapdata.cpp @@ -384,7 +384,7 @@ bool MapData::readHeader() MapData::MapData(const QString &fileName) : _file(fileName) { - if (!_file.open(QFile::ReadOnly)) { + if (!_file.open(QFile::ReadOnly | QIODevice::Unbuffered)) { _errorString = _file.errorString(); return; } @@ -419,7 +419,7 @@ RectC MapData::bounds() const void MapData::load() { - if (_file.open(QIODevice::ReadOnly)) + if (_file.open(QIODevice::ReadOnly | QIODevice::Unbuffered)) readSubFiles(); }