From 0ae49d46bbcc1820b93c8f6236835e5b901f066d Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sat, 2 Jun 2012 00:48:10 +0800 Subject: [PATCH] Make it only default to unmatched files only for the FileTreeView (to stop accidental mis-drops when working with albums on right-hand pane) --- picard/ui/itemviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/ui/itemviews.py b/picard/ui/itemviews.py index 48866b4d7..cff1f5999 100644 --- a/picard/ui/itemviews.py +++ b/picard/ui/itemviews.py @@ -476,7 +476,7 @@ class BaseTreeView(QtGui.QTreeWidget): # application/picard.album-list albums = data.data("application/picard.album-list") if albums: - if target is None: + if isinstance(self, FileTreeView) and target is None: target = self.tagger.unmatched_files albums = [self.tagger.load_album(id) for id in str(albums).split("\n")] self.drop_albums(albums, target)