Fix dataset to have to correct type

The parent type was used before if the dataset was opened via
openChildren().
This commit is contained in:
Didier Roche
2020-08-18 16:10:40 +02:00
committed by Faruk Kasumovic
parent a91df3a028
commit ee9aac43ac
+1 -1
View File
@@ -59,7 +59,7 @@ func (d *Dataset) openChildren() (err error) {
list := C.dataset_list_children(d.list)
for list != nil {
dataset := Dataset{list: list}
dataset.Type = DatasetType(C.dataset_type(d.list))
dataset.Type = DatasetType(C.dataset_type(list))
dataset.Properties = make(map[Prop]Property)
err = dataset.ReloadProperties()
if err != nil {