Make it only default to unmatched files only for the FileTreeView (to stop accidental mis-drops when working with albums on right-hand pane)

This commit is contained in:
Chad Wilson
2012-06-02 00:48:10 +08:00
parent 92f8078866
commit 0ae49d46bb

View File

@@ -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)