installer: Fixed crash on configuration by setting the SettingsContainer's dataClass...
authorJerome St-Louis <jerome@ecere.com>
Thu, 8 Mar 2012 17:44:00 +0000 (12:44 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 8 Mar 2012 17:44:00 +0000 (12:44 -0500)
ecere/src/sys/JSON.ec
installer/src/installer.ec

index be53552..faf4563 100644 (file)
@@ -328,7 +328,7 @@ public:
       if(ch == '{')
       {
          result = success;
-         if(objectType && objectType.type == noHeadClass || objectType.type == normalClass)
+         if(objectType && (objectType.type == noHeadClass || objectType.type == normalClass))
          {
             *object = eInstance_New(objectType);
          }
index 88dfe99..38d017c 100644 (file)
@@ -1242,6 +1242,7 @@ class InstallThread : Thread
          {
             driver = "JSON";
             dataOwner = &settings;
+            dataClass = class(IDESettings);
          };
          CompilerConfig compiler;
          installProgress.installing.text = $"Configuring ECERE IDE...";