Always uncheck spelling if it is not available
This commit is contained in:
parent
a3ab258819
commit
ab22866cff
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue