Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-04-12 19:03:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-12 19:03:47 +0400
commit0ec76c6dcf462f51d8f2a46c21dbd83870fc4eda (patch)
tree4b62b2c53dd2f4075b4b2a51c539e6de440e38b6 /source/blender/src/filesel.c
parent165bfce94e985898027d748331898efe9ad6f53c (diff)
removed blenders backup feature.
sprintf(str, "/bin/su root -c 'cd %s; /bin/tar cf - \"%s\" | (/bin/cd %s; /bin/tar xf -)'", from, file, to); return system(str); This would ask for a password in blenders terminal, in ubuntu there is no root user... If this feature is added back it should be written in a much nicer way. Also made HKey toggle hidden files in the file selector.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r--source/blender/src/filesel.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c
index 31d9b95d660..cd490c562a8 100644
--- a/source/blender/src/filesel.c
+++ b/source/blender/src/filesel.c
@@ -2013,8 +2013,7 @@ void winqreadfilespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if (sfile->filelist[i].flags & ACTIVE) {
BLI_make_file_string(G.sce, str, sfile->dir, sfile->filelist[i].relname);
- if(event==BKEY) ret= BLI_backup(sfile->filelist[i].relname, sfile->dir, otherdir);
- else if(event==CKEY) ret= BLI_copy_fileops(str, otherdir);
+ if(event==CKEY) ret= BLI_copy_fileops(str, otherdir);
else if(event==LKEY) ret= BLI_link(str, otherdir);
else if(event==MKEY) ret= BLI_move(str, otherdir);
@@ -2123,7 +2122,12 @@ void winqreadfilespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
fs_fake_users(sfile);
}
break;
-
+ case HKEY:
+ sfile->flag ^= FILE_HIDE_DOT;
+ BLI_hide_dot_files(sfile->flag & FILE_HIDE_DOT);
+ freefilelist(sfile);
+ scrarea_queue_winredraw(curarea);
+ break;
case PADPLUSKEY:
case EQUALKEY:
if (G.qual & LR_CTRLKEY) BLI_newname(sfile->file, +100);