Commit ca600526 authored by Christos Christodoulopoulos's avatar Christos Christodoulopoulos
Browse files

Fixed spurious "save" message

parent 779d5055
......@@ -185,7 +185,10 @@ public class JBDataStructure {
public void setRoleset(String roleset) {
if (!this.roleset.equals(roleset)) {
this.roleset = roleset;
hasChanged(true);
// If the role is set to XX it means that we couldn't find the predicate in the frameset,
// so don't mark it as a change
if (!roleset.endsWith("XX"))
hasChanged(true);
}
}
......
......@@ -24,8 +24,6 @@
package jubilee.toolkit;
import java.io.File;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
* @author Jinho D. Choi
......
......@@ -45,7 +45,8 @@ public class StringManager
{
try
{
Integer.parseInt(str)
//noinspection ResultOfMethodCallIgnored
Integer.parseInt(str);
}
catch (NumberFormatException e){return false;}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment