]> spindle.queued.net Git - midori/commitdiff
Always uncheck spelling if it is not available
authorChristian Dywan <christian@twotoasts.de>
Thu, 4 Aug 2011 22:02:17 +0000 (00:02 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 4 Aug 2011 22:02:17 +0000 (00:02 +0200)
midori/midori-preferences.c

index d03b98eed640776caa3b7b4b188bad8cb68e0733..734ed162839d21355021ccef998e156542e25883 100644 (file)
@@ -364,7 +364,10 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
     {
         gchar* enchant_path = sokoke_find_lib_path ("enchant");
         if (enchant_path == NULL)
+        {
+            gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
             gtk_widget_set_sensitive (button, FALSE);
+        }
         else
             g_free (enchant_path);
     }