mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Fixed error handling
This commit is contained in:
parent
9cadb8d0a5
commit
215cf03b68
@ -210,7 +210,9 @@ bool IGCParser::loadFile(QFile *file)
|
|||||||
_errorLine = 1;
|
_errorLine = 1;
|
||||||
_errorString.clear();
|
_errorString.clear();
|
||||||
|
|
||||||
while ((len = file->readLine(line, sizeof(line))) > 0) {
|
while (!file->atEnd()) {
|
||||||
|
len = file->readLine(line, sizeof(line));
|
||||||
|
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
_errorString = "I/O error";
|
_errorString = "I/O error";
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user