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