To reproduce: - Open a File - Navigate to an entry via the Navbar (to get the # in the file name) - From the RightClick-Menu, select 'delete all annotations' - Main file is removed instead, probably because of the # in the file name