]> spindle.queued.net Git - midori/commitdiff
Guard formhistory_suggestions_hide_cb for GDOM
authorChristian Dywan <christian@twotoasts.de>
Sun, 11 Mar 2012 17:50:36 +0000 (18:50 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 11 Mar 2012 17:50:36 +0000 (18:50 +0100)
extensions/formhistory/formhistory.c

index 90d61858edaacae431315515f30d171bec3af5da..cc81cdeff8bf2f7a36e0fafe114c8e74d732ad60 100644 (file)
@@ -216,7 +216,9 @@ formhistory_navigation_decision_cb (WebKitWebView*             web_view,
     js_context = webkit_web_frame_get_global_context (web_frame);
     value = sokoke_js_script_eval (js_context, script, NULL);
 
+#ifdef FORMHISTORY_USE_GDOM
     formhistory_suggestions_hide_cb (NULL, NULL, priv);
+#endif
     if (value && *value)
     {
         gchar** inputs = g_strsplit (value, "|||", 0);