From: Agnibho Mondal Date: Mon, 18 Sep 2023 20:18:20 +0000 (+0530) Subject: Bugfix: prescriber save X-Git-Tag: v0.3^0 X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=fb5b189268518622801db9d87566a31a9654493d;p=medscript.git Bugfix: prescriber save --- diff --git a/setting.py b/setting.py index 44b2286..ca4b4ba 100644 --- a/setting.py +++ b/setting.py @@ -176,7 +176,7 @@ class EditPrescriber(QMainWindow): def save(self, file=False): if(file is not False or QMessageBox.StandardButton.Yes==QMessageBox.question(self,"Confirm Save", "This action will overwrite the previous information. Continue?")): - if file is None: + if file is False: file=self.file try: self.prescriber["name"]=self.input_name.text()