mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CSV import, fix known import handling with tab separator
When we have the separator as tab, we need to use the proper tab character instead of the string for known imports. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d9fd4cb69b
commit
b29a1bfb7b
1 changed files with 2 additions and 1 deletions
|
@ -432,7 +432,8 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
|
|||
if (triggeredBy == KNOWNTYPES && value != 0) {
|
||||
// an actual known type
|
||||
separator = CSVApps[value].separator;
|
||||
if (ui->CSVSeparator->currentText() != separator) {
|
||||
|
||||
if (ui->CSVSeparator->currentText() != separator || separator == "Tab") {
|
||||
blockSignals(true);
|
||||
ui->CSVSeparator->setCurrentText(separator);
|
||||
blockSignals(false);
|
||||
|
|
Loading…
Add table
Reference in a new issue