mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Code cleanup
This commit is contained in:
parent
dfb69b2755
commit
e26fa92ce6
@ -90,6 +90,9 @@ bool OZF::readTileTable()
|
||||
|
||||
bool OZF::load(const QString &path)
|
||||
{
|
||||
if (_file.isOpen())
|
||||
_file.close();
|
||||
|
||||
_file.setFileName(path);
|
||||
if (!_file.open(QIODevice::ReadOnly))
|
||||
return false;
|
||||
|
@ -50,6 +50,10 @@ bool Tar::load(const QString &path)
|
||||
quint64 size;
|
||||
qint64 ret;
|
||||
|
||||
if (_file.isOpen())
|
||||
_file.close();
|
||||
_index.clear();
|
||||
|
||||
_file.setFileName(path);
|
||||
if (!_file.open(QIODevice::ReadOnly))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user