diff runner/main.cpp @ 20:7d87bf308509

* set up default RDF index location
author Chris Cannam
date Mon, 29 Jun 2009 13:47:12 +0000
parents 475f4623feba
children 9a4e410bda7a
line wrap: on
line diff
--- a/runner/main.cpp	Tue Jun 02 09:48:04 2009 +0000
+++ b/runner/main.cpp	Mon Jun 29 13:47:12 2009 +0000
@@ -550,8 +550,9 @@
         }
     }
 
+    QSettings settings;
+
 #ifdef HAVE_FFTW3
-    QSettings settings;
     settings.beginGroup("FFTWisdom");
     QString wisdom = settings.value("wisdom").toString();
     if (wisdom != "") {
@@ -560,6 +561,14 @@
     settings.endGroup();
 #endif
 
+    settings.beginGroup("RDF");
+    if (!settings.contains("rdf-indices")) {
+        QStringList list;
+        list << "http://www.vamp-plugins.org/rdf/plugins/index.txt";
+        settings.setValue("rdf-indices", list);
+    }
+    settings.endGroup();
+
     FeatureExtractionManager manager;
 
     if (!requestedSummaryTypes.empty()) {