Merge pull request #128 from openrocket/issue-118

Catch UnsupportedOperationExceptions from getDesktop.
This commit is contained in:
kruland2607 2013-09-03 17:31:58 -07:00
commit 5b9af6de3b

View File

@ -164,7 +164,7 @@ public class EditDecalHelper {
if (useSystemEditor) { if (useSystemEditor) {
try { try {
Desktop.getDesktop().edit(tmpFile); Desktop.getDesktop().edit(tmpFile);
} catch (IOException ioex) { } catch (Exception ioex) {
throw new EditDecalHelperException(trans.get("EditDecalHelper.launchSystemEditorException"), trans.get("EditDecalHelper.editPreferencesHelp"), ioex); throw new EditDecalHelperException(trans.get("EditDecalHelper.launchSystemEditorException"), trans.get("EditDecalHelper.editPreferencesHelp"), ioex);
} }
} else { } else {