mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 00:55:13 +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;
|
||||
_errorString.clear();
|
||||
|
||||
while ((len = file->readLine(line, sizeof(line))) > 0) {
|
||||
while (!file->atEnd()) {
|
||||
len = file->readLine(line, sizeof(line));
|
||||
|
||||
if (len < 0) {
|
||||
_errorString = "I/O error";
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user