kcm_editfiletypes: Fix crash when adding new part to empty list
Otherwise, we would have a bad cast and crash horribly at runtime. To make sure we do not run into this hard to debug issue again, the "None"-Item has a type of -1 set that we check before removing it. Also, the "None"-Item is properly disabled
parent
c1b7873f
Please register or sign in to comment