aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-24 20:09:48 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-24 20:09:48 +0800
commit5c9e26f898ab481887297ab2eed8348d41a74230 (patch)
tree164f9f076a05c8efcea4b9b530346e604490e9f3 /src
parent949f432f56914a7c1a71de6783b21cb506f1b921 (diff)
downloadgsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.gz
gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.tar.zst
gsoc2013-epiphany-5c9e26f898ab481887297ab2eed8348d41a74230.zip
Fall back to Home directory when the pref is NULL.
2004-01-24 Christian Persch <chpe@cvs.gnome.org> * src/prefs-dialog.c: (get_download_button_label): Fall back to Home directory when the pref is NULL.
Diffstat (limited to 'src')
-rw-r--r--src/prefs-dialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 883406862..18d4dd1c4 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -1090,6 +1090,12 @@ get_download_button_label ()
downloads_path = g_build_path (g_get_home_dir (), "Desktop",
_("Downloads"), NULL);
+ /* fallback to Home directory */
+ if (key == NULL)
+ {
+ key = g_strdup ("~");
+ }
+
if (g_utf8_collate (key, "~/Desktop") == 0)
{
g_free (key);