ide; replace in files; fixed replacing with nothing pretends to replace but does...
authorRejean Loyer <rejean.loyer@gmail.com>
Wed, 21 Nov 2012 16:50:28 +0000 (11:50 -0500)
committerRejean Loyer <rejean.loyer@gmail.com>
Fri, 23 Nov 2012 04:56:27 +0000 (23:56 -0500)
ide/src/dialogs/FindInFilesDialog.ec

index 0b095e0..46c2ef0 100644 (file)
@@ -661,7 +661,7 @@ private:
          }
       app.Unlock();
       
-      if(replaceMode && contentReplace[0])
+      if(replaceMode)
       {
          replaceEdit = EditBox
          {
@@ -706,7 +706,7 @@ private:
                                  $"Searching %s for %s", relative ? fileRelative : stack[frame].fileList.path, contentCriteria);
                         app.Unlock();
 
-                        if(replaceMode && contentReplace[0])
+                        if(replaceMode)
                            ret = SearchFileContentAndReplace(stack[frame].fileList.path, relative, fileRelative, replaceEdit);
                         else
                            ret = SearchFileContent(stack[frame].fileList.path, relative, fileRelative);
@@ -826,7 +826,7 @@ private:
                                        contentCriteria);
                               app.Unlock();
 
-                              if(replaceMode && contentReplace[0])
+                              if(replaceMode)
                                  ret = SearchFileContentAndReplace(filePath, relative, fileRelative, replaceEdit);
                               else
                                  ret = SearchFileContent(filePath, relative, fileRelative);