diff options
author | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-01-25 03:14:16 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-01-25 03:14:16 +0800 |
commit | 7aefac15c53fdecdf97dc62e39b15642097af3eb (patch) | |
tree | 175d14b1da5ffdf7b78a6409309b60865095b4a6 /src | |
parent | 03f88794174a3e34b45da41befe217766b3fea09 (diff) | |
download | gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.gz gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.zst gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.zip |
Better fix for bug #511759.
svn path=/trunk/; revision=7888
Diffstat (limited to 'src')
-rw-r--r-- | src/popup-commands.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c index 51b2fbfd5..330030a67 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -174,6 +174,7 @@ save_property_url_completed_cb (EphyEmbedPersist *persist) EPHY_EMBED_PERSIST_ASK_DESTINATION)) { const char *dest; + GFile *dest_file; guint32 user_time; user_time = ephy_embed_persist_get_user_time (persist); @@ -181,9 +182,13 @@ save_property_url_completed_cb (EphyEmbedPersist *persist) g_return_if_fail (dest != NULL); + dest_file = g_file_new_for_path (dest); + + g_return_if_fail (dest_file != NULL); /* If save location is the desktop, nautilus will not open */ - ephy_file_browse_to (dest, user_time); - + ephy_file_browse_to (dest_file, user_time); + + g_object_unref (dest_file); } } |