Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
* libstetic/editor/ActionMenuItem.cs: Don't try to remove the menu item
Browse files Browse the repository at this point in the history
  controls if they have not been added to the table.

svn path=/trunk/stetic/; revision=91161
  • Loading branch information
slluis committed Dec 12, 2007
1 parent 4fe3778 commit 7c27edf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2007-12-12 Lluis Sanchez Gual <lluis@novell.com>

* libstetic/editor/ActionMenuItem.cs: Don't try to remove the menu item
controls if they have not been added to the table.

2007-12-12 Lluis Sanchez Gual <lluis@novell.com>

* libsteticui/libsteticui.mdp, libstetic/libstetic.mdp, stetic/stetic.mdp,
Expand Down
6 changes: 3 additions & 3 deletions libstetic/editor/ActionMenuItem.cs
Expand Up @@ -430,11 +430,11 @@ public override void Refresh ()
if (table == null)
return;

if (icon != null)
if (icon != null && icon.Parent != null)
table.Remove (icon);
if (label != null)
if (label != null && label.Parent != null)
table.Remove (label);
if (accel != null)
if (accel != null && accel.Parent != null)
table.Remove (accel);

icon = label = accel = null;
Expand Down

0 comments on commit 7c27edf

Please sign in to comment.