Fix cutting item with submenu makes deletion dialog appear
A deletion confirmation dialog will appear if the selected item that is being deleted contains submenus.
Cutting an item is equivalent to copy + delete, which makes the deletion dialog appear even when cutting.
This MR fixes that.
p.s. First time contributing, I have no idea how I landed here in a matter of hours, let me know if there's anything I need to do :)