/hg/icedtea-web: PolicyEditor.java: "can not open" dialog do not...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Wed Jan 4 10:02:39 UTC 2017
changeset edef16b35418 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=edef16b35418
author: Jiri Vanek <jvanek at redhat.com>
date: Wed Jan 04 11:05:51 2017 +0100
PolicyEditor.java: "can not open" dialog do not show when policy file simply do not exists.
diffstat:
ChangeLog | 5 +++++
netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java | 4 +++-
2 files changed, 8 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 2461eeea269f -r edef16b35418 ChangeLog
--- a/ChangeLog Fri Dec 16 12:50:53 2016 +0100
+++ b/ChangeLog Wed Jan 04 11:05:51 2017 +0100
@@ -1,3 +1,8 @@
+2017-01-04 Jiri Vanek <jvanek at redhat.com>
+
+ * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: "can not open" dialog
+ do not show when policy file simply do not exists.
+
2016-12-16 Jiri Vanek <jvanek at redhat.com>
Nashorn made accessible to javaws applications
diff -r 2461eeea269f -r edef16b35418 netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java
--- a/netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java Fri Dec 16 12:50:53 2016 +0100
+++ b/netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java Wed Jan 04 11:05:51 2017 +0100
@@ -1518,7 +1518,9 @@
final OpenFileResult ofr = FileUtils.testFilePermissions(getFile());
if (ofr == OpenFileResult.FAILURE || ofr == OpenFileResult.NOT_FILE) {
addDefaultAllAppletsIdentifier();
- FileUtils.showCouldNotOpenFilepathDialog(PolicyEditor.this, policyEditorController.getFile().getPath());
+ if (policyEditorController.getFile().exists()) {
+ FileUtils.showCouldNotOpenFilepathDialog(PolicyEditor.this, policyEditorController.getFile().getPath());
+ }
return;
}
if (ofr == OpenFileResult.CANT_WRITE) {
More information about the distro-pkg-dev
mailing list