mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:34:48 +00:00
shell32: Do not set the default menu item from ShellView_DoContextMenu().
This was added in f045c9df81
, with no explanation.
It does not affect any behaviour in Wine, since FWF_DESKTOP is never set.
It does not make sense, since "open" is already usually the default action on
Windows, and it's not obvious why FWF_DESKTOP would affect this.
It also leans on IContextMenu implementation details.
This commit is contained in:
parent
d9c4f506fd
commit
6fd349c6e0
|
@ -1039,9 +1039,6 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL
|
||||||
/* let the ContextMenu merge its items in */
|
/* let the ContextMenu merge its items in */
|
||||||
if (SUCCEEDED(IContextMenu_QueryContextMenu( pContextMenu, hMenu, 0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST, wFlags )))
|
if (SUCCEEDED(IContextMenu_QueryContextMenu( pContextMenu, hMenu, 0, FCIDM_SHVIEWFIRST, FCIDM_SHVIEWLAST, wFlags )))
|
||||||
{
|
{
|
||||||
if (This->FolderSettings.fFlags & FWF_DESKTOP)
|
|
||||||
SetMenuDefaultItem(hMenu, FCIDM_SHVIEW_OPEN, MF_BYCOMMAND);
|
|
||||||
|
|
||||||
if( bDefault )
|
if( bDefault )
|
||||||
{
|
{
|
||||||
TRACE("-- get menu default command\n");
|
TRACE("-- get menu default command\n");
|
||||||
|
|
Loading…
Reference in a new issue