From d6f9663f7f005bb20a9077e91f050cade39c7575 Mon Sep 17 00:00:00 2001 From: Sambhav Kothari Date: Thu, 19 Jan 2017 01:44:21 +0530 Subject: [PATCH] PICARD-931: Fix info dialog opening on double clicking cluster --- picard/ui/itemviews.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/picard/ui/itemviews.py b/picard/ui/itemviews.py index 022359225..eebe934ef 100644 --- a/picard/ui/itemviews.py +++ b/picard/ui/itemviews.py @@ -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):