# HG changeset patch # User Chris Cannam # Date 1279299099 0 # Node ID 944af6246560455fbdebf97fc606ee57a7fb12eb # Parent d9c21e7bff2155c85d3cd1a735f83f4d22f04170 * Start revamping the CSV import dialog so as to show a "purpose" for each column. These are estimated from the file now, but changing them does not actually do anything yet. diff -r d9c21e7bff21 -r 944af6246560 framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Thu Jul 15 15:25:59 2010 +0000 +++ b/framework/MainWindowBase.cpp Fri Jul 16 16:51:39 2010 +0000 @@ -1369,8 +1369,9 @@ (path, &midiDlg, getMainModel()->getSampleRate()); if (!model) { - CSVFormatDialog *dialog = new CSVFormatDialog - (this, CSVFormat(path), getMainModel()->getSampleRate()); + CSVFormat format(path); + format.setSampleRate(getMainModel()->getSampleRate()); + CSVFormatDialog *dialog = new CSVFormatDialog(this, format); if (dialog->exec() == QDialog::Accepted) { model = DataFileReaderFactory::loadCSV (path, dialog->getFormat(),