From a6d38b8a97f0a6a8387981cb637d6933a907d425 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 26 Oct 2015 00:32:49 +0800 Subject: [PATCH] gui/datasets: fix source decoding --- artiq/gui/datasets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/gui/datasets.py b/artiq/gui/datasets.py index 1c51dc387..fcaa36ac1 100644 --- a/artiq/gui/datasets.py +++ b/artiq/gui/datasets.py @@ -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