summaryrefslogtreecommitdiff
path: root/sources/prefs/VSPrefs.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-12 22:17:01 +0000
committerPaul Buetow <paul@buetow.org>2008-06-12 22:17:01 +0000
commit6091b415053e5bd8f50ea282e6dddc67ac3c2c12 (patch)
tree098ea3e8e356e21b33a8970c37770b60fece2c8d /sources/prefs/VSPrefs.java
parentae1e594e43bb18ca293124564c3a63e486bcc9f5 (diff)
VSPrefs.restrictions gets now serialized.
Diffstat (limited to 'sources/prefs/VSPrefs.java')
-rw-r--r--sources/prefs/VSPrefs.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java
index 15f8874..be50a76 100644
--- a/sources/prefs/VSPrefs.java
+++ b/sources/prefs/VSPrefs.java
@@ -959,6 +959,7 @@ public class VSPrefs implements VSSerializable {
objectOutputStream.writeObject(stringPrefs);
objectOutputStream.writeObject(units);
objectOutputStream.writeObject(vectorPrefs);
+ objectOutputStream.writeObject(restrictions);
/** For later backwards compatibility, to add more stuff */
objectOutputStream.writeObject(new Boolean(false));
@@ -989,13 +990,14 @@ public class VSPrefs implements VSSerializable {
objectInputStream.readObject();
longPrefs = (HashMap<String,Long>)
objectInputStream.readObject();
- restrictions = new HashMap<String,VSPrefsRestriction>();
stringPrefs = (HashMap<String,String>)
objectInputStream.readObject();
units = (HashMap<String,String>)
objectInputStream.readObject();
vectorPrefs = (HashMap<String,Vector<Integer>>)
objectInputStream.readObject();
+ restrictions = (HashMap<String,VSPrefsRestriction>)
+ objectInputStream.readObject();
/** For later backwards compatibility, to add more stuff */
objectInputStream.readObject();