documentor: Fixed crash on changing documentation path
authorJerome St-Louis <jerome@ecere.com>
Mon, 11 Mar 2013 22:33:14 +0000 (18:33 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 11 Mar 2013 22:33:14 +0000 (18:33 -0400)
documentor/src/SettingsDialog.ec

index 3b4d172..de1bf83 100644 (file)
@@ -40,8 +40,7 @@ class SettingsDialog : Window
 
       bool NotifyClicked(Button button, int x, int y, Modifiers mods)
       {
-         delete settings.docDir;
-         settings.docDir = CopyString(pathEditBox.contents); // Store the path entered into the edit box
+         settings.docDir = pathEditBox.contents; // Store the path entered into the edit box
          settingsContainer.Save(); // write that path to the ini file
          Destroy(0); // close the window
          return true;