From 2f2461854f82addb991739fb26fcde2427aed9dc Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 20 Apr 2016 15:39:23 +0200 Subject: [PATCH] browser: use activated --- artiq/browser/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/browser/files.py b/artiq/browser/files.py index 395c9bce9..c73cac0d9 100644 --- a/artiq/browser/files.py +++ b/artiq/browser/files.py @@ -104,7 +104,7 @@ class FilesDock(QtWidgets.QDockWidget): self.rl.setModel(self.model) self.rl.selectionModel().currentChanged.connect( self.list_current_changed) - self.rl.doubleClicked.connect(self.double_clicked) + self.rl.activated.connect(self.open_experiment) self.splitter.addWidget(self.rl) def tree_current_changed(self, current, previous): @@ -123,7 +123,7 @@ class FilesDock(QtWidgets.QDockWidget): rd = dict((k, (True, v.value)) for k, v in f["datasets"].items()) self.datasets.init(rd) - def double_clicked(self, current): + def open_experiment(self, current): info = self.model.fileInfo(current) if info.isDir(): self.rl.setRootIndex(current)