mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CSV import: improve header parsing
The skipping of header field manipulation for APD was a bit too aggressive, skipping the header fix up for all logs when on initial state. Also, addition of APD2 was not taken into account. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e8df3da9e3
commit
4a72ac2d2b
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
|
|||
* also know that the column headers do not need this
|
||||
* conversion.
|
||||
*/
|
||||
if (triggeredBy == KNOWNTYPES && value != APD) {
|
||||
if (apd == false) {
|
||||
columnText.replace("\"", "");
|
||||
columnText.replace("number", "#", Qt::CaseInsensitive);
|
||||
columnText.replace("2", "₂", Qt::CaseInsensitive);
|
||||
|
|
Loading…
Add table
Reference in a new issue