diff main/MainWindow.cpp @ 434:db0c86c4e5e9 templating

Merge from the default branch
author Chris Cannam
date Tue, 17 May 2011 13:33:15 +0100
parents ee927c1b7941 5f22e0bbe4ba
children 586eb6764a2b
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed May 11 14:41:27 2011 +0100
+++ b/main/MainWindow.cpp	Tue May 17 13:33:15 2011 +0100
@@ -2416,7 +2416,8 @@
 
 		WavFileWriter subwriter(subpath,
                                         model->getSampleRate(),
-                                        model->getChannelCount());
+                                        model->getChannelCount(),
+                                        WavFileWriter::WriteToTemporary);
                 subwriter.writeModel(model, &subms);
 		ok = subwriter.isOK();
 
@@ -2431,7 +2432,8 @@
     if (!multiple) {
         WavFileWriter writer(path,
                              model->getSampleRate(),
-                             model->getChannelCount());
+                             model->getChannelCount(),
+                             WavFileWriter::WriteToTemporary);
         writer.writeModel(model, selectionToWrite);
 	ok = writer.isOK();
 	error = writer.getError();