61 E5MessageBox.critical(self, |
61 E5MessageBox.critical(self, |
62 self.trUtf8("Add tool group entry"), |
62 self.trUtf8("Add tool group entry"), |
63 self.trUtf8("You have to give a name for the group to add.")) |
63 self.trUtf8("You have to give a name for the group to add.")) |
64 return |
64 return |
65 |
65 |
66 if len(self.groupsList.findItems(groupName, Qt.MatchFlags(Qt.MatchExactly))): |
66 if len(self.groupsList.findItems( |
|
67 groupName, Qt.MatchFlags(Qt.MatchExactly))): |
67 E5MessageBox.critical(self, |
68 E5MessageBox.critical(self, |
68 self.trUtf8("Add tool group entry"), |
69 self.trUtf8("Add tool group entry"), |
69 self.trUtf8("An entry for the group name {0} already exists.")\ |
70 self.trUtf8("An entry for the group name {0} already exists.")\ |
70 .format(groupName)) |
71 .format(groupName)) |
71 return |
72 return |
88 E5MessageBox.critical(self, |
89 E5MessageBox.critical(self, |
89 self.trUtf8("Add tool group entry"), |
90 self.trUtf8("Add tool group entry"), |
90 self.trUtf8("You have to give a name for the group to add.")) |
91 self.trUtf8("You have to give a name for the group to add.")) |
91 return |
92 return |
92 |
93 |
93 if len(self.groupsList.findItems(groupName, Qt.MatchFlags(Qt.MatchExactly))): |
94 if len(self.groupsList.findItems( |
|
95 groupName, Qt.MatchFlags(Qt.MatchExactly))): |
94 E5MessageBox.critical(self, |
96 E5MessageBox.critical(self, |
95 self.trUtf8("Add tool group entry"), |
97 self.trUtf8("Add tool group entry"), |
96 self.trUtf8("An entry for the group name {0} already exists.")\ |
98 self.trUtf8("An entry for the group name {0} already exists.")\ |
97 .format(groupName)) |
99 .format(groupName)) |
98 return |
100 return |