From: Agnibho Mondal Date: Sun, 12 Nov 2023 18:33:16 +0000 (+0530) Subject: Bugfix: open prescription with custom data X-Git-Tag: v0.5~9 X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=2d68baa33a5038e3007ea3bbaa31fe776d48c25f;p=medscript.git Bugfix: open prescription with custom data --- 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.")