part of fix for 47105, clear canDrop every time we dispatch a dragOver event. it will be set accordingly if it is meant to be.

This commit is contained in:
pinkerton%netscape.com 2000-08-15 18:22:39 +00:00
Родитель 3b9a740778
Коммит 4d6f0e2dd4
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -162,6 +162,14 @@ nsMacWindow :: DragTrackingHandler ( DragTrackingMessage theMessage, WindowPtr t
// set the drag action on the service so the frames know what is going on
SetDragActionBasedOnModifiers ( sDragService, modifiers );
// clear out the |canDrop| property of the drag session. If it's meant to
// be, it will be set again.
nsCOMPtr<nsIDragSession> session;
sDragService->GetCurrentSession(getter_AddRefs(session));
NS_ASSERTION ( session, "If we don't have a drag session, we're fucked" );
if ( session )
session->SetCanDrop(PR_FALSE);
// pass into gecko for handling...
geckoWindow->DragEvent ( NS_DRAGDROP_OVER, mouseLocGlobal, modifiers );
break;