Changeset 221f672 in subsurface


Ignore:
Timestamp:
May 7, 2017, 5:53:35 AM (3 months ago)
Author:
Miika Turkia <miika.turkia@…>
Branches:
master
Children:
d851549
Parents:
6e1c000
Message:

Make parsing of Seabear header more robust

This should work even if some header line is missing from some DC.

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/qthelper.cpp

    r6e1c000 r221f672  
    15301530                }
    15311531        }
     1532        f.seek(0);
    15321533
    15331534        /*
     
    15441545                }
    15451546        }
     1547        f.seek(0);
    15461548
    15471549        /*
     
    15561558                }
    15571559        }
     1560        f.seek(0);
    15581561
    15591562        /*
     
    15681571                        params[pnr++] = strdup(parseLine.replace(needle, QString::fromLatin1("")).prepend("\"").append("\"").toUtf8().data());
    15691572                }
     1573        }
     1574        f.seek(0);
     1575
     1576        while ((parseLine = f.readLine().trimmed()).length() > 0 && !f.atEnd()) {
    15701577        }
    15711578
Note: See TracChangeset for help on using the changeset viewer.