more fix of edit menu updates

This commit is contained in:
Chris Young 2013-05-12 20:14:29 +01:00
parent 1304a939c3
commit 0b028e41c6
2 changed files with 2 additions and 1 deletions

View File

@ -485,7 +485,7 @@ void ami_context_menu_add_submenu(Object *ctxmenuobj, ULONG cmsub, void *userdat
PMA_AddItem,NewObject(POPUPMENU_GetItemClass(), NULL,
PMIA_Title, (ULONG)ctxmenulab[CMID_SELCUT],
PMIA_ID,CMID_SELCUT,
PMIA_Disabled, !(browser_window_get_editor_flags(bw) & BW_EDITOR_CAN_PASTE),
PMIA_Disabled, !(browser_window_get_editor_flags(bw) & BW_EDITOR_CAN_CUT),
PMIA_CommKey, "X",
TAG_DONE),
PMA_AddItem,NewObject(POPUPMENU_GetItemClass(), NULL,

View File

@ -283,6 +283,7 @@ bool selection_click(struct selection *s, browser_mouse_state mouse,
* selection, Otherwise clear on release (to allow for drags) */
selection_clear(s, true);
gui_clear_selection(top->window);
} else if (mouse & BROWSER_MOUSE_DRAG_1) {
/* start new selection drag */