Do not add empty strings to GtkFileFilter
When parsing a UI description for GtkFileFilter we should avoid passing empty strings, to avoid issues when serialising the filter before sending it over DBus. Fixes: #1973
This commit is contained in:
@ -299,7 +299,7 @@ parser_end_element (GMarkupParseContext *context,
|
|||||||
{
|
{
|
||||||
SubParserData *data = (SubParserData*)user_data;
|
SubParserData *data = (SubParserData*)user_data;
|
||||||
|
|
||||||
if (data->string)
|
if (data->string != NULL && data->string->len != 0)
|
||||||
{
|
{
|
||||||
switch (data->type)
|
switch (data->type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user