diff options
author | Alexandre Mazari <alexandre.mazari@gmail.com> | 2012-03-29 02:55:08 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-03-31 09:35:59 +0800 |
commit | 2ef933ea60bcebbab86f4ca4fe7a4bf31b48e059 (patch) | |
tree | 8e6bd1f70516c983989151a5566db8aa5954df08 /src | |
parent | c07d7675862fb64f8addf8d92704167d2b21168d (diff) | |
download | gsoc2013-epiphany-2ef933ea60bcebbab86f4ca4fe7a4bf31b48e059.tar.gz gsoc2013-epiphany-2ef933ea60bcebbab86f4ca4fe7a4bf31b48e059.tar.zst gsoc2013-epiphany-2ef933ea60bcebbab86f4ca4fe7a4bf31b48e059.zip |
e-web-app-utils: add ephy_web_application_exists
Signed-off-by: Diego Escalante Urrelo <diegoe@igalia.com>
https://bugzilla.gnome.org/show_bug.cgi?id=658925
Diffstat (limited to 'src')
-rw-r--r-- | src/window-commands.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/window-commands.c b/src/window-commands.c index eb8c16863..1443e5d74 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -501,21 +501,14 @@ dialog_save_as_application_response_cb (GtkDialog *dialog, EphyApplicationDialogData *data) { const char *app_name; - char *profile_dir; char *desktop_file; char *message; NotifyNotification *notification; - gboolean profile_exists; if (response == GTK_RESPONSE_OK) { app_name = gtk_entry_get_text (GTK_ENTRY (data->entry)); - profile_dir = ephy_web_application_get_profile_directory (app_name); - if (!profile_dir) - return; - profile_exists = g_file_test (profile_dir, G_FILE_TEST_IS_DIR); - g_free (profile_dir); - if (profile_exists) + if (ephy_web_application_exists (app_name)) { if (confirm_web_application_overwrite (GTK_WINDOW (dialog), app_name)) ephy_web_application_delete (app_name); |