Fixed a bug involving the delete dialog being open while rotating the screen.