Skip to content

Return empty string with an empty selection

Emmanuele Bassi requested to merge ebassi/issue-6463 into main

The precondition check for gtk_editable_get_chars() introduced in commit 849e3403 means that passing a selection of zero length now returns NULL, instead of returning an empty string.

If the selection of the file chooser entry has a length of zero characters we should return an empty string without going through gtk_editable_get_chars().

Fixes: #6463 (closed)

Merge request reports