remove xml file if there is no security element
This commit is contained in:
parent
ac8f461594
commit
7ad223b981
|
|
@ -115,6 +115,7 @@ public class Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// show progress
|
||||||
progressBarRemove.setVisible(true);
|
progressBarRemove.setVisible(true);
|
||||||
progressBarRemove.setImage(progressOnGoing);
|
progressBarRemove.setImage(progressOnGoing);
|
||||||
|
|
||||||
|
|
@ -138,6 +139,10 @@ public class Controller {
|
||||||
|
|
||||||
progressBarRemove.setImage(progressFinished);
|
progressBarRemove.setImage(progressFinished);
|
||||||
}
|
}
|
||||||
|
else // if there is no security element in the xml file, there is no read-only protection on it
|
||||||
|
{
|
||||||
|
manipulator.removeXMLFile(); // cleans the xml extracted from origin file
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue