Changeset 462 for trunk/src/gui/kernel


Ignore:
Timestamp:
Jan 21, 2010, 7:45:57 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: DnD: Fixed: Don't accept drag objects that were rejected by QDragEnter/QDragMove event handlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qdnd_pm.cpp

    r458 r462  
    520520            }
    521521
    522             USHORT dropReply = DOR_DROP;
     522            USHORT dropReply = ;
    523523
    524524            if (first) {
    525525                // determine the set of operations supported by *all* items
    526526                // (this implies that DRAGITEM::fsSupportedOps is a bit field)
     527
    527528                ULONG itemCount = DrgQueryDragitemCount(info);
    528529                for (ULONG i = 0; i < itemCount; ++ i) {
     
    596597                    // accept by default, since enter event was accepted.
    597598                    dme.setDropAction(dragData->lastAction);
    598                     dme.accept();
     599                    if (dropReply == DOR_DROP)
     600                        dme.accept();
    599601                    sendDropEvent(dragOverWidget, &dme);
    600602                    if (dragData->sourceAllowsOp && dme.isAccepted()) {
Note: See TracChangeset for help on using the changeset viewer.