From 896b3eb18ec34bdce6344dab6034b22b99d2f515 Mon Sep 17 00:00:00 2001 From: TheWatcherMultiversal Date: Sat, 28 Oct 2023 18:54:50 -0500 Subject: [PATCH] Code consolidation and bug fixes --- command/pdfgui_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/pdfgui_tools.py b/command/pdfgui_tools.py index 9f5f024..f933c95 100644 --- a/command/pdfgui_tools.py +++ b/command/pdfgui_tools.py @@ -553,7 +553,7 @@ def encrypt_decrypt(self, encrypt:bool): self.inf_messages("Info", "Enter a password"); self.label_notice.setText(""); return for pdf in pdfs: - pdf.replace(repeat_symbol, "") + pdf = pdf.replace(repeat_symbol, "") if encrypt: status = PyPDF2utils.encrypt_pdf(pdf, self.lineEdit_password.text()) else: status = PyPDF2utils.decrypt_pdf(pdf, self.lineEdit_password.text()) if status is not True: self.inf_messages(*status)