lets' delete files again shall we efm?
authorCarsten Haitzler <raster@rasterman.com>
Fri, 25 Nov 2011 07:13:41 +0000 (07:13 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Fri, 25 Nov 2011 07:13:41 +0000 (07:13 +0000)
SVN revision: 65591

src/bin/e_fm_op.c

index debfb47a2414b426f2e06e7601c8836c3ee242ef..b27af82a1374966ef55c5e7d6733d2f50548c13c 100644 (file)
@@ -156,17 +156,15 @@ main(int argc, char **argv)
    last = argc - 1;
    i = 2;
 
-   if (strcmp(argv[1], "cp") == 0)
-     type = E_FM_OP_COPY;
-   else if (strcmp(argv[1], "mv") == 0)
-     type = E_FM_OP_MOVE;
-   else if (strcmp(argv[1], "rm") == 0)
-     type = E_FM_OP_REMOVE;
-   else if (strcmp(argv[1], "lns") == 0)
-     type = E_FM_OP_SYMLINK;
+   if (!strcmp(argv[1], "cp")) type = E_FM_OP_COPY;
+   else if (!strcmp(argv[1], "mv")) type = E_FM_OP_MOVE;
+   else if (!strcmp(argv[1], "rm")) type = E_FM_OP_REMOVE;
+   else if (!strcmp(argv[1], "lns")) type = E_FM_OP_SYMLINK;
    else return 0;
 
-   if ((type == E_FM_OP_COPY) || (type == E_FM_OP_MOVE) || (type == E_FM_OP_SYMLINK))
+   if ((type == E_FM_OP_COPY) || 
+       (type == E_FM_OP_SYMLINK) || 
+       (type == E_FM_OP_MOVE))
      {
        if (argc < 4) goto quit;
 
@@ -783,7 +781,13 @@ _e_fm_op_scan_idler(void *data __UNUSED__)
                                         task->dst.name);
           }
         else
-          task->started = 1;
+          {
+             task->started = 1;
+             _e_fm_op_scan_queue =
+               eina_list_remove_list(_e_fm_op_scan_queue, node);
+             node = NULL;
+             _e_fm_op_scan_atom(task);
+          }
      }
    else if (dir && !task->started)
      {