VirtualBox

Changeset 99469 in vbox


Ignore:
Timestamp:
Apr 19, 2023 8:35:51 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156954
Message:

FE/Qt: Don't call the overloaded setShortcuts in ~UIAction, but call the QAction version directly. We only want to make sure the shortcut is removed from QGuiApplication, no need to call updateText() which may then involve already destroyed objects during application (VM) termination.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h

    r99467 r99469  
    237237    UIAction(UIActionPool *pParent, UIActionType enmType, bool fMachineMenuAction = false);
    238238    /** Destructs action. */
    239     virtual ~UIAction() RT_OVERRIDE { delete menu(); setShortcuts(QList<QKeySequence>() /*unregister*/); }
     239    virtual ~UIAction() RT_OVERRIDE { delete menu(); QAction::setShortcuts(QList<QKeySequence>() /*unregister*/); }
    240240
    241241    /** Returns action-pool this action belongs to. */
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