VirtualBox

儲存庫 vbox 的更動 99469


忽略:
時間撮記:
2023-4-19 下午08:35:51 (19 月 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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