VirtualBox

Changeset 97787 in vbox


Ignore:
Timestamp:
Dec 12, 2022 6:07:59 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154858
Message:

DnD/FE/Qt: Propagate IGuestDnDSource + IGuestDnDTarget errors to the message center (see r154851), to let the user know if something went wrong.

File:
1 edited

Legend:

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

    r97784 r97787  
    119119    }
    120120
     121    msgCenter().cannotDropDataToGuest(m_dndTarget, m_pParent);
    121122    return Qt::IgnoreAction;
    122123}
     
    142143        return toQtDnDAction(result);
    143144
     145    msgCenter().cannotDropDataToGuest(m_dndTarget, m_pParent);
    144146    return Qt::IgnoreAction;
    145147}
     
    266268
    267269    m_dndTarget.Leave(screenID);
     270    if (m_dndTarget.isOk())
     271        return;
     272
     273    msgCenter().cannotDropDataToGuest(m_dndTarget, m_pParent);
    268274    return;
    269275}
     
    429435
    430436#else /* !VBOX_WITH_DRAG_AND_DROP_GH */
    431 
    432437    rc = VERR_NOT_SUPPORTED;
    433 
    434438#endif /* VBOX_WITH_DRAG_AND_DROP_GH */
    435439
     
    473477    m_dataSource.defaultAction = m_dndSource.DragIsPending(screenID, vecFormats, m_dataSource.vecActions);
    474478    if (!m_dndSource.isOk())
     479    {
     480        msgCenter().cannotDropDataToHost(m_dndSource, m_pParent);
    475481        return VERR_NO_DATA;
     482    }
    476483
    477484    LogRelMax3(10, ("DnD: Default action is: 0x%x\n", m_dataSource.defaultAction));
Note: See TracChangeset for help on using the changeset viewer.

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