mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-30 02:12:03 +00:00
Accidentally broke normal menu items.
Reviewed by me.
This commit is contained in:
1 parent
f850cbf780
commit
a7010e7598
1 file changed
+3
-3
@@ -449,11 +449,11 @@ CPOffState
|
||||
*/
|
||||
- (void)setSubmenu:(CPMenu)aMenu
|
||||
{
|
||||
var supermenu = [_submenu supermenu];
|
||||
|
||||
if (supermenu === self)
|
||||
if (_submenu === aMenu)
|
||||
return;
|
||||
|
||||
var supermenu = [_submenu supermenu];
|
||||
|
||||
if (supermenu)
|
||||
[CPException raise:CPInvalidArgumentException
|
||||
reason: @"Can't add submenu \"" + [aMenu title] + "\" to item \"" + [self title] + "\", because it is already submenu of \"" + [[aMenu supermenu] title] + "\""];
|
||||
|
||||
Reference in new issue
Block a user