mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 11:39:16 +02:00
Fixed error handling
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user