mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Use unbuffered I/O as we use our own buffering
This commit is contained in:
parent
22aa472dc3
commit
28a10ccb32
@ -384,7 +384,7 @@ bool MapData::readHeader()
|
|||||||
|
|
||||||
MapData::MapData(const QString &fileName) : _file(fileName)
|
MapData::MapData(const QString &fileName) : _file(fileName)
|
||||||
{
|
{
|
||||||
if (!_file.open(QFile::ReadOnly)) {
|
if (!_file.open(QFile::ReadOnly | QIODevice::Unbuffered)) {
|
||||||
_errorString = _file.errorString();
|
_errorString = _file.errorString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -419,7 +419,7 @@ RectC MapData::bounds() const
|
|||||||
|
|
||||||
void MapData::load()
|
void MapData::load()
|
||||||
{
|
{
|
||||||
if (_file.open(QIODevice::ReadOnly))
|
if (_file.open(QIODevice::ReadOnly | QIODevice::Unbuffered))
|
||||||
readSubFiles();
|
readSubFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user