VirtualBox

Changeset 97718 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 30, 2022 4:42:22 PM (2 years ago)
Author:
vboxsync
Message:

DnD/FE/Qt: Propagate H->G dropping errors to the message center, so that the user is aware of this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp

    r96407 r97718  
    173173                                            toVBoxDnDActions(possibleActions),
    174174                                            pMimeData->formats().toVector(), strFormat);
    175 
    176     /* Has the guest accepted the drop event? */
    177     if (   m_dndTarget.isOk()
    178         && enmResult != KDnDAction_Ignore)
     175    if (!m_dndTarget.isOk())
     176    {
     177        msgCenter().cannotDropDataToGuest(m_dndTarget, m_pParent);
     178    }
     179    else if (enmResult != KDnDAction_Ignore) /* Has the guest accepted the drop event? */
    179180    {
    180181        LogRel2(("DnD: Guest requested format '%s'\n", strFormat.toUtf8().constData()));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette