aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-web-app-utils.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-05-27 05:59:08 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-06-15 07:25:32 +0800
commit3de7945065fc0d039c9270b5c97fc4a0731c98ed (patch)
tree79ebf71d92b0c52ae55157b7eaa2fcf75233bc3e /lib/ephy-web-app-utils.c
parentccf3836d601c18eadab44a2f4a2f6c1b3605f304 (diff)
downloadgsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.tar
gsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.tar.gz
gsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.tar.bz2
gsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.tar.lz
gsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.tar.xz
gsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.tar.zst
gsoc2013-epiphany-3de7945065fc0d039c9270b5c97fc4a0731c98ed.zip
e-web-app-utils: warn when app dir already exists
https://bugzilla.gnome.org/show_bug.cgi?id=673271
Diffstat (limited to 'lib/ephy-web-app-utils.c')
-rw-r--r--lib/ephy-web-app-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 78cbcc008..51f3599f7 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -316,8 +316,10 @@ ephy_web_application_create (const char *address, const char *name, GdkPixbuf *i
/* If there's already a WebApp profile for the contents of this
* view, do nothing. */
profile_dir = ephy_web_application_get_profile_directory (name);
- if (g_file_test (profile_dir, G_FILE_TEST_IS_DIR))
+ if (g_file_test (profile_dir, G_FILE_TEST_IS_DIR)) {
+ LOG ("Profile directory %s already exists", profile_dir);
goto out;
+ }
/* Create the profile directory, populate it. */
if (g_mkdir (profile_dir, 488) == -1) {