projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9290d
)
Bug Fix #426: geeqie -r file:FILE crashes if FILE does not exist
author
Colin Clark
<cclark@mcb.net>
Wed, 24 Aug 2016 16:01:32 +0000
(17:01 +0100)
committer
Colin Clark
<cclark@mcb.net>
Wed, 24 Aug 2016 16:01:32 +0000
(17:01 +0100)
If the file does not exist, default to the home directory
src/remote.c
patch
|
blob
|
history
diff --git
a/src/remote.c
b/src/remote.c
index
db87526
..
c89eff9
100644
(file)
--- a/
src/remote.c
+++ b/
src/remote.c
@@
-516,6
+516,7
@@
static void gr_file_load(const gchar *text, GIOChannel *channel, gpointer data)
else
{
log_printf("remote sent filename that does not exist:\"%s\"\n", filename);
+ layout_set_path(NULL, homedir());
}
g_free(filename);
@@
-532,6
+533,7
@@
static void gr_config_load(const gchar *text, GIOChannel *channel, gpointer data
else
{
log_printf("remote sent filename that does not exist:\"%s\"\n", filename);
+ layout_set_path(NULL, homedir());
}
g_free(filename);