Fix freeze on changing file filter in Save dialog
This commit fixes an issue where changing the file filter in the Save
dialog caused Inkscape to freeze. The problem arose because setting
from_filefilter_changed
to false prematurely during setExtension()
calls triggered the filter changed signal repeatedly, leading to an
infinite loop.
Fixes: #4940 (closed)