Fixed behaviour of positive button in FilterDialog. Fixes #1