Skip to content

Commit 1dd5241

Browse files
committed
dag: Use connect_button()
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent fee9bf6 commit 1dd5241

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cola/dag/view.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ def __init__(self, model, dag, parent=None, args=None):
570570

571571
qtutils.connect_button(self.zoom_in, self.graphview.zoom_in)
572572
qtutils.connect_button(self.zoom_out, self.graphview.zoom_out)
573+
qtutils.connect_button(self.displaybutton, self.display)
573574

574575
self.thread.connect(self.thread, self.thread.commits_ready,
575576
self.add_commits)
@@ -590,9 +591,6 @@ def __init__(self, model, dag, parent=None, args=None):
590591
self.connect(self.maxresults, SIGNAL('editingFinished()'),
591592
self.display)
592593

593-
self.connect(self.displaybutton, SIGNAL('pressed()'),
594-
self.display)
595-
596594
self.connect(self.revtext, SIGNAL('ref_changed'),
597595
self.display)
598596

0 commit comments

Comments
 (0)