Remove unused variables
Fix crashwhile removing a folder

in a QMap, Accessing an entry that does not exists create the null entry
We should not use operator[] if we are not sure the folder indeed exists