* by popular request, you have to hold shift down in the playlist window

when you want to replace the playlist by the stuff you are dragging,
  the default behaviour is now to insert/append it to the existing items



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21309 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2007-06-03 20:18:55 +00:00
parent 288e17885a
commit 7d7550a04b
+4 -1
View File
@@ -556,7 +556,10 @@ DragSortableListView::SetDropTargetRect(const BMessage* message, BPoint where)
{
if (AcceptDragMessage(message)) {
bool copy = modifiers() & B_SHIFT_KEY;
bool replaceAll = !message->HasPointer("list") && !copy;
bool replaceAll = !message->HasPointer("list") && copy;
// when dragging something in from ie Tracker, the
// user has to hold shift down to replace everything
// (opposite meaning of the normal shift behaviour)
BRect r = Bounds();
if (replaceAll) {
r.bottom--; // compensate for scrollbar offset