projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
olaf updates neophyte theme, keypad numlock tweaks
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
confirmsave.C
diff --git
a/cinelerra-5.1/cinelerra/confirmsave.C
b/cinelerra-5.1/cinelerra/confirmsave.C
index 5fe6ab90baae8e4f811cbc6ad0f11d1fe3531d0e..3542a049d5f0be63886eb4654f36523bf33d1049 100644
(file)
--- a/
cinelerra-5.1/cinelerra/confirmsave.C
+++ b/
cinelerra-5.1/cinelerra/confirmsave.C
@@
-47,14
+47,12
@@
int ConfirmSave::test_file(MWindow *mwindow, char *path)
int ConfirmSave::test_files(MWindow *mwindow, ArrayList<char*> *paths)
{
int ConfirmSave::test_files(MWindow *mwindow, ArrayList<char*> *paths)
{
- FILE *file;
ArrayList<BC_ListBoxItem*> list;
int result = 0;
for(int i = 0; i < paths->size(); i++) {
char *path = paths->values[i];
ArrayList<BC_ListBoxItem*> list;
int result = 0;
for(int i = 0; i < paths->size(); i++) {
char *path = paths->values[i];
- if( (file=fopen(path, "r")) != 0 ) {
- fclose(file);
+ if( !access(path, F_OK) ) {
list.append(new BC_ListBoxItem(path));
}
}
list.append(new BC_ListBoxItem(path));
}
}