# HG changeset patch # User Chris Cannam # Date 1547044945 0 # Node ID 713b9a6b284aa69032f3713fd91f76290373cfc9 # Parent 92ad94dee1038fae5af7e9ebf33ef04c031e5d73 Provide path, not just initial format, to dialog to enable re-guessing if user changes separator diff -r 92ad94dee103 -r 713b9a6b284a framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Tue Jan 08 15:19:03 2019 +0000 +++ b/framework/MainWindowBase.cpp Wed Jan 09 14:42:25 2019 +0000 @@ -1886,9 +1886,11 @@ (path, &midiDlg, getMainModel()->getSampleRate()); if (!model) { - CSVFormat format(path); - format.setSampleRate(getMainModel()->getSampleRate()); - CSVFormatDialog *dialog = new CSVFormatDialog(this, format); + CSVFormatDialog *dialog = + new CSVFormatDialog(this, + path, + getMainModel()->getSampleRate(), + 5); if (dialog->exec() == QDialog::Accepted) { model = DataFileReaderFactory::loadCSV (path, dialog->getFormat(),