aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-09-10 00:29:15 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-02-08 20:42:09 +0800
commitdb10ae9888b32a8a1bcccdaba36cec15375b67be (patch)
treea233abc99c648ba07adc7f67415928345d85e3a9 /src
parent33af7ef9f0b521d1924ab11198ad46536f22b830 (diff)
downloadgsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.tar
gsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.tar.gz
gsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.tar.bz2
gsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.tar.lz
gsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.tar.xz
gsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.tar.zst
gsoc2013-epiphany-db10ae9888b32a8a1bcccdaba36cec15375b67be.zip
Convert app names to the proper encoding before using them as filenames
Also add proper conversion error handling where needed. https://bugzilla.gnome.org/show_bug.cgi?id=658028
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 394bee9c2..0189b8588 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -508,6 +508,8 @@ dialog_save_as_application_response_cb (GtkDialog *dialog,
if (response == GTK_RESPONSE_OK) {
profile_dir = ephy_web_application_get_profile_directory (gtk_entry_get_text (GTK_ENTRY (data->entry)));
+ if (!profile_dir)
+ return;
profile_exists = g_file_test (profile_dir, G_FILE_TEST_IS_DIR);
g_free (profile_dir);