placesview: Don't do the same thing twice

When the schema is supported, we want to remove
the error style class, not add it again. Pointed
out by Rafał Mikrut.

Fixes: #2724
This commit is contained in:
Matthias Clasen
2020-05-09 19:41:30 -04:00
parent d83df5a928
commit 78343ef61a

View File

@@ -1890,7 +1890,7 @@ out:
if (scheme && !supported)
gtk_widget_add_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
else
gtk_widget_add_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
gtk_widget_remove_css_class (view->address_entry, GTK_STYLE_CLASS_ERROR);
g_free (address);
g_free (scheme);