diff main/main.cpp @ 267:c452d8a7b770 sv1-v1.3 sv1-v1.3rc1

* Updates for 1.3
author Chris Cannam
date Thu, 10 Jul 2008 12:50:56 +0000
parents 6a6b5a1a6c67
children a0d3b334e7a9
line wrap: on
line diff
--- a/main/main.cpp	Mon Jul 07 16:49:53 2008 +0000
+++ b/main/main.cpp	Thu Jul 10 12:50:56 2008 +0000
@@ -370,6 +370,12 @@
     if (wisdom != "") {
         fftwf_import_wisdom_from_string(wisdom.toLocal8Bit().data());
     }
+#ifdef HAVE_FFTW3
+    wisdom = settings.value("wisdom_d").toString();
+    if (wisdom != "") {
+        fftw_import_wisdom_from_string(wisdom.toLocal8Bit().data());
+    }
+#endif
     settings.endGroup();
 #endif
 
@@ -382,7 +388,6 @@
     }
 */
     int rv = application.exec();
-    std::cerr << "application.exec() returned " << rv << std::endl;
 
     cleanupMutex.lock();
     TempDirectory::getInstance()->cleanup();
@@ -390,13 +395,20 @@
     application.releaseMainWindow();
 
 #ifdef HAVE_FFTW3F
+    settings.beginGroup("FFTWisdom");
     char *cwisdom = fftwf_export_wisdom_to_string();
     if (cwisdom) {
-        settings.beginGroup("FFTWisdom");
         settings.setValue("wisdom", cwisdom);
-        settings.endGroup();
         fftwf_free(cwisdom);
     }
+#ifdef HAVE_FFTW3
+    cwisdom = fftw_export_wisdom_to_string();
+    if (cwisdom) {
+        settings.setValue("wisdom_d", cwisdom);
+        fftw_free(cwisdom);
+    }
+#endif
+    settings.endGroup();
 #endif
 
     delete gui;