Made chnges for Qt 5, removed buggy feature of opening directory