ecere/sys/GlobalSettings: fix settingsFilePath deleted even if FileOpenTryWrite opens...
authorRejean Loyer <redj@ecere.com>
Wed, 11 Jun 2014 20:36:40 +0000 (16:36 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 19 Jun 2014 05:27:32 +0000 (01:27 -0400)
ecere/src/sys/GlobalAppSettings.ec

index 5589071..d9e0414 100644 (file)
@@ -354,8 +354,7 @@ private:
             }
          }
       }
-
-      if(shouldDelete)       // This delete will cover both trying the next possible config location and
+      else if(shouldDelete)        // This delete will cover both trying the next possible config location and
          delete settingsFilePath;  // allow trying to save to a location where user has permission.
       return f != null;
    }