VirtualBox

Changeset 106312 in vbox for trunk


Ignore:
Timestamp:
Oct 14, 2024 4:38:55 PM (7 weeks ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Do not show mouse related errors, as it's free to discard our put-mouse-event requests; Previously this could cause multiple error-messages the moment we are switching from relative to absolute mode.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp

    r106061 r106312  
    11221122        QApplication::translate("UIMessageCenter", "Failed to change keyboard parameter.") +
    11231123        UIErrorString::formatErrorInfo(comKeyboard));
    1124 }
    1125 
    1126 /* static */
    1127 void UINotificationMessage::cannotChangeMouseParameter(const CMouse &comMouse)
    1128 {
    1129     createMessage(
    1130         QApplication::translate("UIMessageCenter", "Mouse failure ..."),
    1131         QApplication::translate("UIMessageCenter", "Failed to change mouse parameter.") +
    1132         UIErrorString::formatErrorInfo(comMouse));
    11331124}
    11341125
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r106061 r106312  
    452452          * @param  comKeyboard  Brings the object parameter being changed for. */
    453453        static void cannotChangeKeyboardParameter(const CKeyboard &comKeyboard);
    454         /** Notifies about inability to change IMouse parameter.
    455           * @param  comMouse  Brings the object parameter being changed for. */
    456         static void cannotChangeMouseParameter(const CMouse &comMouse);
    457454        /** Notifies about inability to change IVirtualSystemDescription parameter.
    458455          * @param  comVsd  Brings the object parameter being changed for. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r106061 r106312  
    587587        return false;
    588588    comMouse.PutMouseEvent(iDx, iDy, iDz, iDw, iButtonState);
    589     const bool fSuccess = comMouse.isOk();
    590     if (!fSuccess)
    591         UINotificationMessage::cannotChangeMouseParameter(comMouse);
    592     return fSuccess;
     589    return comMouse.isOk();
    593590}
    594591
     
    599596        return false;
    600597    comMouse.PutMouseEventAbsolute(iX, iY, iDz, iDw, iButtonState);
    601     const bool fSuccess = comMouse.isOk();
    602     if (!fSuccess)
    603         UINotificationMessage::cannotChangeMouseParameter(comMouse);
    604     return fSuccess;
     598    return comMouse.isOk();
    605599}
    606600
     
    611605        return false;
    612606    comMouse.PutEventMultiTouch(iCount, contacts, fIsTouchScreen, uScanTime);
    613     const bool fSuccess = comMouse.isOk();
    614     if (!fSuccess)
    615         UINotificationMessage::cannotChangeMouseParameter(comMouse);
    616     return fSuccess;
     607    return comMouse.isOk();
    617608}
    618609
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