The vector layer subset filter expression it's non preserved changing the datasource (the Provider Feature Filter section in Properties|Source is empty).
Nevertheless, in the layer panel, the layer name is followed by a "filter" icon which shows a popup containing the previous filter expression (that however is non applied to the layer).