Steps to Reproduce:
drop an album on another album or artist.
Organize collection comes up.
Organized collection dialog should not pop up.
Git commit 8d103cf35705690d17f8f9437618868e2cbb98b3 by Bart Cerneels.
Committed on 31/01/2012 at 13:41.
Pushed by shanachie into branch 'master'.
Don't accept drops on non-collectionheader items.
Caused the copy dialog to come up.
M +2 -0 ChangeLog
M +6 -2 src/browsers/CollectionTreeItemModel.cpp
Git commit 8a90627d3f25363ff9795b72b414c9c8c0498dba by Matěj Laitl.
Committed on 03/02/2012 at 12:23.
Pushed by laitl into branch 'master'.
Another approach to fix bug 291068, be more permissive
Bart originally solved the bug by enabling track dropping only
precisely on root collection rows. This is IMO too much restrictive
as it prevents you to drag tracks between 2 large expanded collections
without excessive scrolling. (something I would miss) Additionally,
there was no visual indication that the drop will not be performed.
This is my try to rework it in a way that:
* keeps drops onto artists/albums (whatever you first level
entity in collection browser is) allowed. There is a drop indicator
that clearly shows that the drop will go _between_ the entities, not
* disables drops to read-only collections
* disabled drops are indicated visually using the not-allowed mouse
cursor (the tricky part, but commented well in code)
Some more code comments not present in review request are added.
DIGEST: More natural drag'n'drop behaviour in collection browser
M +2 -2 ChangeLog
M +24 -12 src/browsers/CollectionTreeItemModel.cpp
M +6 -0 src/browsers/CollectionTreeItemModelBase.cpp
M +12 -0 src/browsers/CollectionTreeItemModelBase.h
M +19 -0 src/browsers/CollectionTreeView.cpp
M +1 -0 src/browsers/CollectionTreeView.h