Skip to content

Commit

Permalink
browser: use activated
Browse files Browse the repository at this point in the history
jordens committed Apr 20, 2016
1 parent 8567061 commit 2f24618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/browser/files.py
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ def __init__(self, datasets, main_window, root="",
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 @@ def list_current_changed(self, current, previous):
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)

0 comments on commit 2f24618

Please sign in to comment.