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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user