mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 02:40:20 +08:00
fix: fix QAction caused crash, fixed #884
This commit is contained in:
parent
521786b69e
commit
eec913c56b
@ -1 +1 @@
|
||||
5892
|
||||
5893
|
||||
|
@ -168,7 +168,9 @@ class MainWindow
|
||||
QMenu *logRCM_Menu = new QMenu(this);
|
||||
QMenu *connectionListRCM_Menu = new QMenu(this);
|
||||
QMenu *graphWidgetMenu = new QMenu(this);
|
||||
DECL_ACTION(tray_RecentConnectionsMenu, tray_ClearRecentConnectionsAction);
|
||||
// Do not set parent=tray_RecentConnectionsMenu
|
||||
// Calling clear() will cause this QAction being deleted.
|
||||
DECL_ACTION(this, tray_ClearRecentConnectionsAction);
|
||||
DECL_ACTION(tray_RootMenu, tray_action_ToggleVisibility);
|
||||
DECL_ACTION(tray_RootMenu, tray_action_Preferences);
|
||||
DECL_ACTION(tray_RootMenu, tray_action_Quit);
|
||||
|
Loading…
Reference in New Issue
Block a user