Fix BUG-1653, chicken / egg problem: the DropDownOpening is not called when there are no children but they are only generated when the DropDownOpening is called. Initially adding something helps.

This commit is contained in:
RKrom 2014-07-07 09:02:52 +02:00
parent 01cc22e871
commit 98ab69a35a

View file

@ -569,6 +569,8 @@ namespace Greenshot {
this.fileStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileStripMenuItem.Text = "File";
this.fileStripMenuItem.DropDownOpening += new System.EventHandler(this.FileMenuDropDownOpening);
// Fix for BUG-1653, the DropDownOpening is not called when there are no children.
this.fileStripMenuItem.DropDownItems.Add(toolStripSeparator9);
//
// editToolStripMenuItem
//