Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #201 from adobe/glenn/issue-2770
Browse files Browse the repository at this point in the history
Revert "Don't create tags for separator items."
  • Loading branch information
redmunds committed Feb 2, 2013
2 parents 7ee4e99 + b76b53e commit 665450d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions appshell/appshell_extensions_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,7 @@ int32 AddMenuItem(CefRefPtr<CefBrowser> browser, ExtensionString parentCommand,
}
int32 tag = NativeMenuModel::getInstance(getMenuParent(browser)).getTag(command);
if (tag == kTagNotFound) {
if (!isSeparator) {
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
}
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
} else {
return NO_ERROR;
}
Expand Down
4 changes: 1 addition & 3 deletions appshell/appshell_extensions_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1249,9 +1249,7 @@ int32 AddMenuItem(CefRefPtr<CefBrowser> browser, ExtensionString parentCommand,

tag = NativeMenuModel::getInstance(getMenuParent(browser)).getTag(command);
if (tag == kTagNotFound) {
if (!isSeparator) {
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
}
tag = NativeMenuModel::getInstance(getMenuParent(browser)).getOrCreateTag(command, parentCommand);
} else {
return NO_ERROR;
}
Expand Down

0 comments on commit 665450d

Please sign in to comment.