Qt: fix browse dir in preferences dialog