comparison data/fileio/CSVFileWriter.cpp @ 1119:e22bfe8ca248 tonioni

fixes the problem that the last note was not exported to csv
author Matthias Mauch <mail@matthiasmauch.net>
date Fri, 14 Aug 2015 18:16:14 +0100
parents 074d7c51e973
children 815f82508f96
comparison
equal deleted inserted replaced
1068:135c5899a71f 1119:e22bfe8ca248
66 if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { 66 if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
67 m_error = tr("Failed to open file %1 for writing") 67 m_error = tr("Failed to open file %1 for writing")
68 .arg(temp.getTemporaryFilename()); 68 .arg(temp.getTemporaryFilename());
69 return; 69 return;
70 } 70 }
71 71
72 QTextStream out(&file); 72 QTextStream out(&file);
73 out << m_model->toDelimitedDataStringWithOptions 73 out << m_model->toDelimitedDataStringWithOptions
74 (m_delimiter, m_options); 74 (m_delimiter, m_options);
75 75
76 file.close(); 76 file.close();