diff transform/FileFeatureWriter.cpp @ 591:7065e921f122

* add reviewFileForAppend callback
author Chris Cannam
date Thu, 14 May 2009 15:48:07 +0000
parents e0a1ff10cc7b
children 4541581067f3
line wrap: on
line diff
--- a/transform/FileFeatureWriter.cpp	Thu May 14 15:47:16 2009 +0000
+++ b/transform/FileFeatureWriter.cpp	Thu May 14 15:48:07 2009 +0000
@@ -231,6 +231,11 @@
         cerr << "FileFeatureWriter: NOTE: Using output filename \""
              << filename.toStdString() << "\"" << endl;
 
+        if (m_append) {
+            cerr << "FileFeatureWriter: NOTE: Calling reviewFileForAppending" << endl;
+            reviewFileForAppending(filename);
+        }
+        
         QFile *file = new QFile(filename);
         QIODevice::OpenMode mode = (QIODevice::WriteOnly);
         if (m_append) mode |= QIODevice::Append;