* Reverted the BTextView part of r35731 again - turns out this usually doesn't

do what one would want. This closes ticket #5671.
* I'm not sure if we want to resurrect the pose view part of r35731 again; it
  adds bitmap and text clips to dragged files. At least the bitmap change was
  unrelated, but I'm a bit torn if that is the way this should be handled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36390 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-04-21 08:01:09 +00:00
parent 33da1e6516
commit 5292aff148

View File

@ -1479,11 +1479,8 @@ BTextView::AcceptsPaste(BClipboard *clipboard)
bool
BTextView::AcceptsDrop(const BMessage *inMessage)
{
if (fEditable && inMessage && (inMessage->HasData("text/plain", B_MIME_TYPE)
|| inMessage->HasData("refs", B_REF_TYPE)))
return true;
return false;
return fEditable && inMessage
&& inMessage->HasData("text/plain", B_MIME_TYPE);
}
@ -4790,9 +4787,6 @@ BTextView::_MessageDropped(BMessage *inMessage, BPoint where, BPoint offset)
}
Insert(dropOffset, text, dataLen, runArray);
} else if (inMessage->FindRef("refs", &ref) == B_OK) {
BPath path(&ref);
Insert(dropOffset, path.Path(), strlen(path.Path()));
}
return true;