hdata: Fix data window bahaviour after edition.