mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixed potential error.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2303 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
d58e419503
commit
2ea920dc7a
1 changed files with 2 additions and 1 deletions
|
@ -229,6 +229,7 @@ namespace Greenshot {
|
||||||
ToolStripMenuItem defaultItem = new ToolStripMenuItem(toolstripDestination.Description);
|
ToolStripMenuItem defaultItem = new ToolStripMenuItem(toolstripDestination.Description);
|
||||||
defaultItem.Tag = toolstripDestination;
|
defaultItem.Tag = toolstripDestination;
|
||||||
defaultItem.Image = toolstripDestination.DisplayIcon;
|
defaultItem.Image = toolstripDestination.DisplayIcon;
|
||||||
|
defaultItem.ShortcutKeys = Keys.None;
|
||||||
defaultItem.Click += delegate {
|
defaultItem.Click += delegate {
|
||||||
toolstripDestination.ExportCapture(true, surface, surface.CaptureDetails);
|
toolstripDestination.ExportCapture(true, surface, surface.CaptureDetails);
|
||||||
};
|
};
|
||||||
|
@ -307,8 +308,8 @@ namespace Greenshot {
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolStripMenuItem item = destination.GetMenuItem(true, new EventHandler(DestinationToolStripMenuItemClick));
|
ToolStripMenuItem item = destination.GetMenuItem(true, new EventHandler(DestinationToolStripMenuItemClick));
|
||||||
item.ShortcutKeys = destination.EditorShortcutKeys;
|
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
|
item.ShortcutKeys = destination.EditorShortcutKeys;
|
||||||
fileStripMenuItem.DropDownItems.Add(item);
|
fileStripMenuItem.DropDownItems.Add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue