[epiphany] e-web-app-utils: warn when app dir already exists
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] e-web-app-utils: warn when app dir already exists
- Date: Thu, 14 Jun 2012 23:26:57 +0000 (UTC)
commit 3de7945065fc0d039c9270b5c97fc4a0731c98ed
Author: Diego Escalante Urrelo <diegoe igalia com>
Date: Sat May 26 16:59:08 2012 -0500
e-web-app-utils: warn when app dir already exists
https://bugzilla.gnome.org/show_bug.cgi?id=673271
lib/ephy-web-app-utils.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index 78cbcc0..51f3599 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]