aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/directory.c')
-rw-r--r--src/plugins/fs/directory.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/plugins/fs/directory.c b/src/plugins/fs/directory.c
index 810fb52e..5f030368 100644
--- a/src/plugins/fs/directory.c
+++ b/src/plugins/fs/directory.c
@@ -89,15 +89,7 @@ void on_open_menu_activate_fs(GtkWidget * dummy1,
89 SearchList * list; 89 SearchList * list;
90 struct ECRS_URI * uri; 90 struct ECRS_URI * uri;
91 const char * kws[2]; 91 const char * kws[2];
92#if 1
93 /* somehow on my system I get this (and only this event)
94 always twice -- not sure why, but this is a workaround
95 for now */
96 static int modulo;
97 92
98 if (0 == (1 & modulo++))
99 return;
100#endif
101 dn = selectFile(); 93 dn = selectFile();
102 if (dn == NULL) 94 if (dn == NULL)
103 return; 95 return;
@@ -114,10 +106,7 @@ void on_open_menu_activate_fs(GtkWidget * dummy1,
114 } 106 }
115 fd = disk_file_open(NULL, 107 fd = disk_file_open(NULL,
116 dn, 108 dn,
117#ifdef O_LARGEFILE 109 O_LARGEFILE | O_RDONLY);
118 O_LARGEFILE |
119#endif
120 O_RDONLY);
121 if (fd == -1) { 110 if (fd == -1) {
122 addLogEntry(_("Error opening file `%s'."), 111 addLogEntry(_("Error opening file `%s'."),
123 dn); 112 dn);