This warning is shown is shown if the Preference's Warnings pane's "warn before deleting notes" option is set to "only if the note has children" or "always". Clicking the "Delete and don't ask again" button sets the above Preference option to "never".