Overwrite subfolders' state when setting states in folder dialog

Fixes #248