diff options
author | Xan Lopez <xan@igalia.com> | 2013-03-25 22:52:46 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-03-25 22:53:58 +0800 |
commit | a48ed2ac052a60885a005bda9323002c87340972 (patch) | |
tree | 8c2b3aa9f10630c985fe05e0398e3c1352dc4997 /src | |
parent | bdb76c96362a6d87d1e069c4d2815592e7add89c (diff) | |
download | gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.tar gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.tar.gz gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.tar.bz2 gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.tar.lz gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.tar.xz gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.tar.zst gsoc2013-epiphany-a48ed2ac052a60885a005bda9323002c87340972.zip |
ephy-encoding-dialog: make this work again
We were not resetting correctly the internal state when getting a NULL
encoding from WebKit, so the dialog would stop working after that.
https://bugzilla.gnome.org/show_bug.cgi?id=696548
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-encoding-dialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c index de15cbae3..0e56cd2e7 100644 --- a/src/ephy-encoding-dialog.c +++ b/src/ephy-encoding-dialog.c @@ -119,13 +119,13 @@ sync_encoding_against_embed (EphyEncodingDialog *dialog) view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); #ifdef HAVE_WEBKIT2 encoding = webkit_web_view_get_custom_charset (view); - if (encoding == NULL) return; + if (encoding == NULL) goto out; #else encoding = webkit_web_view_get_custom_encoding (view); if (encoding == NULL) { encoding = webkit_web_view_get_encoding (view); - if (encoding == NULL) return; + if (encoding == NULL) goto out; is_automatic = TRUE; } #endif @@ -156,7 +156,7 @@ sync_encoding_against_embed (EphyEncodingDialog *dialog) button = ephy_dialog_get_control (EPHY_DIALOG (dialog), "automatic_button"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), is_automatic); - +out: dialog->priv->update_tag = FALSE; } |