Fix: switching files works again.

updateAfterSelect() didn't call updatePlainTextEditMain()
Fixed bugs when clicking checkboxes on new files.
Merge fixes from 'master' into 'folders'.