From 7971b147cb6b8893cef961c08cefa686878fa1e0 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 4 Nov 2025 18:15:43 +1100 Subject: [PATCH] Remove dialogs in history screen --- bouquin/history_dialog.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bouquin/history_dialog.py b/bouquin/history_dialog.py index 9cccda7..5ee404c 100644 --- a/bouquin/history_dialog.py +++ b/bouquin/history_dialog.py @@ -167,22 +167,10 @@ class HistoryDialog(QDialog): return sel = self._db.get_version(version_id=sel_id) vno = sel["version_no"] - # Confirm - if ( - QMessageBox.question( - self, - "Revert", - f"Revert {self._date} to version v{vno}?\n\nYou can always change your mind later.", - QMessageBox.Yes | QMessageBox.No, - ) - != QMessageBox.Yes - ): - return # Flip head pointer try: self._db.revert_to_version(self._date, version_id=sel_id) except Exception as e: QMessageBox.critical(self, "Revert failed", str(e)) return - QMessageBox.information(self, "Reverted", f"{self._date} is now at v{vno}.") self.accept() # let the caller refresh the editor