Ignore:
Timestamp:
10/20/13 11:10:24 (10 years ago)
Author:
nit
Message:

[titan] add test rename in filelistmanager before move with progressbar for speed up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/filemanager/filemanager.h

    r24125 r24454  
    116116        struct skin* filelistpath2 = getscreennode(filemanager2, "filelistpath");
    117117        struct skin* filelist2 = getscreennode(filemanager2, "filelist");
    118         char* file1 = NULL, *cmd = NULL, *tmpstr = NULL;
     118        char* file1 = NULL, *file2 = NULL, *cmd = NULL, *tmpstr = NULL;
    119119        struct skin* tmpfilelist = filelist1;
    120120
     
    214214                                                {
    215215                                                        if(aktfilelist == 0)
    216                                                                 screencopy(_("Move File"), file1, filelistpath2->text, 1);
     216                                                        {
     217                                                                file2 = createpath(filelistpath2->text, filelist1->select->text);
     218                                                                if(rename(file1, file2) != 0)
     219                                                                        screencopy(_("Move File"), file1, filelistpath2->text, 1);
     220                                                                free(file2); file2 = NULL;
     221                                                        }
    217222                                                        else
    218                                                                 screencopy(_("Move File"), file1, filelistpath1->text, 1);
     223                                                        {
     224                                                                file2 = createpath(filelistpath1->text, filelist2->select->text);
     225                                                                if(rename(file1, file2) != 0)
     226                                                                        screencopy(_("Move File"), file1, filelistpath1->text, 1);
     227                                                                free(file2); file2 = NULL;
     228                                                        }
    219229                                                }
    220230                                                else
Note: See TracChangeset for help on using the changeset viewer.