mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Fixing Bug #3536968 by catching the COMException (every exception) and not displaying the "subDestinations". This won't solve all COM exceptions...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1932 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
54f401db19
commit
b527eefb77
1 changed files with 6 additions and 1 deletions
|
@ -124,7 +124,12 @@ namespace GreenshotPlugin.Core {
|
|||
basisMenuItem.DropDownOpening += delegate (object source, EventArgs eventArgs) {
|
||||
if (basisMenuItem.DropDownItems.Count == 0) {
|
||||
List<IDestination> subDestinations = new List<IDestination>();
|
||||
subDestinations.AddRange(DynamicDestinations());
|
||||
// Fixing Bug #3536968 by catching the COMException (every exception) and not displaying the "subDestinations"
|
||||
try {
|
||||
subDestinations.AddRange(DynamicDestinations());
|
||||
} catch(Exception ex) {
|
||||
LOG.ErrorFormat("Skipping {0}, due to the following error: {1}", Description, ex.Message);
|
||||
}
|
||||
if (subDestinations.Count > 0) {
|
||||
subDestinations.Sort();
|
||||
ToolStripMenuItem destinationMenuItem = new ToolStripMenuItem(Description);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue