Merge pull request #578 from samj1912/picard931

PICARD-931: Fix info dialog opening on double clicking cluster
This commit is contained in:
Laurent Monin
2017-01-18 21:54:27 +01:00
committed by GitHub

View File

@@ -525,9 +525,9 @@ class BaseTreeView(QtGui.QTreeWidget):
def activate_item(self, index):
obj = self.itemFromIndex(index).obj
# Double-clicking albums should expand them. The album info can be
# Double-clicking albums or clusters should expand them. The album info can be
# viewed by using the toolbar button.
if not isinstance(obj, Album) and obj.can_view_info():
if not isinstance(obj, (Album, Cluster)) and obj.can_view_info():
self.window.view_info()
def add_cluster(self, cluster, parent_item=None):