diff main/MainWindow.cpp @ 1998:6d82eecd4164 import-audio-data

Rely more heavily on the "value"-column estimation from CSVFormat to determine which columns might contain sample data when importing audio from CSV; this makes things a bit more consistent, & can easily enough be overridden
author Chris Cannam
date Wed, 12 Sep 2018 15:29:01 +0100
parents 2b83ca602ece
children 5d3ef2c450cc
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Sep 12 13:58:33 2018 +0100
+++ b/main/MainWindow.cpp	Wed Sep 12 15:29:01 2018 +0100
@@ -2890,12 +2890,6 @@
     format.setTimeUnits(CSVFormat::TimeAudioFrames);
     format.setSampleRate(defaultRate); // as a default for the dialog
 
-    for (int i = 0; i < format.getColumnCount(); ++i) {
-        if (format.isColumnNumeric(CSVFormat::ColumnNumeric)) {
-            format.setColumnPurpose(i, CSVFormat::ColumnValue);
-        }
-    }
-
     {
         CSVAudioFormatDialog *dialog = new CSVAudioFormatDialog(this, format);
         if (dialog->exec() != QDialog::Accepted) {