From 2d68baa33a5038e3007ea3bbaa31fe776d48c25f Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Mon, 13 Nov 2023 00:03:16 +0530 Subject: [PATCH] Bugfix: open prescription with custom data --- window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/window.py b/window.py index a5b71cb..5c75e2a 100644 --- a/window.py +++ b/window.py @@ -372,7 +372,8 @@ class MainWindow(QMainWindow): self.input_medication.setText(medication) self.input_additional.setText(additional) self.input_certificate.setText(certificate) - self.input_custom.setData(custom) + if(config["enable_form"] and custom is not None): + self.input_custom.setData(custom) self.label_prescriber.setText(self.prescriber.name) except Exception as e: QMessageBox.warning(self,"Failed to load", "Failed to load the data into the application.") -- 2.39.5