gui/datasets: fix source decoding

This commit is contained in:
Sebastien Bourdeauducq 2015-10-26 00:32:49 +08:00
parent fe809f81ab
commit a6d38b8a97
1 changed files with 3 additions and 3 deletions

View File

@ -111,10 +111,10 @@ class DatasetsDock(dockarea.Dock):
display.update_data(self.table_model.backing_store)
return
if mod["action"] == "setitem":
source = mod["key"]
elif mod["path"]:
if mod["path"]:
source = mod["path"][0]
elif mod["action"] == "setitem":
source = mod["key"]
else:
return