split out item deletion from prepareSettingsDialog
actually test on windows, and fix in consequence