Changeset 24454 for titan/plugins/filemanager
- Timestamp:
- 10/20/13 11:10:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/filemanager/filemanager.h
r24125 r24454 116 116 struct skin* filelistpath2 = getscreennode(filemanager2, "filelistpath"); 117 117 struct skin* filelist2 = getscreennode(filemanager2, "filelist"); 118 char* file1 = NULL, * cmd = NULL, *tmpstr = NULL;118 char* file1 = NULL, *file2 = NULL, *cmd = NULL, *tmpstr = NULL; 119 119 struct skin* tmpfilelist = filelist1; 120 120 … … 214 214 { 215 215 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 } 217 222 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 } 219 229 } 220 230 else
Note: See TracChangeset
for help on using the changeset viewer.