CreateDialogCodeDialog: fixed an oversight in the recent code changes causing the dialog to be populated multiple times.

Thu, 18 Oct 2018 18:46:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 18 Oct 2018 18:46:53 +0200
changeset 6548
21f8260753b5
parent 6547
77c817301ca1
child 6549
50ae5813ac40

CreateDialogCodeDialog: fixed an oversight in the recent code changes causing the dialog to be populated multiple times.

Project/CreateDialogCodeDialog.py file | annotate | diff | comparison | revisions
diff -r 77c817301ca1 -r 21f8260753b5 Project/CreateDialogCodeDialog.py
--- a/Project/CreateDialogCodeDialog.py	Wed Oct 17 19:53:13 2018 +0200
+++ b/Project/CreateDialogCodeDialog.py	Thu Oct 18 18:46:53 2018 +0200
@@ -360,6 +360,8 @@
             
             signatureList = self.__signatures()
             
+            self.slotsModel.clear()
+            self.slotsModel.setHorizontalHeaderLabels([""])
             for objectDict in objectsList:
                 itm = QStandardItem("{0} ({1})".format(
                     objectDict["name"],

eric ide

mercurial