[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Thu Jan 20 06:50:09 CET 2011


SVN commit 1215889 by kuemmel:

show DataSource's metas, DataSources are not in the object list.

 M  +4 -2      primitivemodel.h  


--- branches/work/kst/portto4/kst/src/libkstapp/primitivemodel.h #1215888:1215889
@@ -113,13 +113,15 @@
       if (kst_cast<T>(obj) && kst_cast<T>(obj)->orphan()) {
         addMeta<T>(kst_cast<T>(obj));
       }
-    } else if (kst_cast<DataSource>(obj)) {
-      addDataSourcesMetas(kst_cast<DataSource>(obj));
     } else if (kst_cast<DataObject>(obj)) {
       addDataObjectsMetas<T>(kst_cast<DataObject>(obj));
     }
   }
+  DataSourceList datasoucres = _store->dataSourceList();
+  foreach(const DataSourcePtr& ds, datasoucres) {
+    addDataSourcesMetas(ds);
 }
+}
 
 
 template<class T>


More information about the Kst mailing list