ports/graphics/ristretto/files/patch-src_main.c
Olivier Duchateau 776de95975 Update to 0.8.1
2016-10-06 19:35:40 +00:00

11 lines
457 B
C

--- src/main.c.orig 2016-09-08 07:14:04 UTC
+++ src/main.c
@@ -256,7 +256,7 @@ cb_rstto_open_files (RsttoOpenFiles *rof
*/
iter = rstto_main_window_get_iter (RSTTO_MAIN_WINDOW (rof->window));
- if (file_type != G_FILE_TYPE_DIRECTORY && r_file != NULL)
+ if (r_file != NULL && file_type != G_FILE_TYPE_DIRECTORY)
{
/* Get the file's parent directory */
p_file = g_file_get_parent (file);