def revert_with_prompt(self) -> None:
        """
        Revert this patch. Prompt for confirmation.
        """
        dlg = QMessageBox()
        dlg.setWindowTitle("Revert patch")
        dlg.setText("Are you sure you want to revert this patch?")
        dlg.setIcon(QMessageBox.Icon.Question)
        dlg.setStandardButtons(QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.Cancel)
        dlg.setDefaultButton(QMessageBox.StandardButton.Cancel)
        if dlg.exec_() != QMessageBox.StandardButton.Yes:
            return
        self.revert()

        Revert this patch. Prompt for confirmation.
        
angrmanagement/ui/views/hex_view.py