129 if len(self.toolsList.findItems( |
129 if len(self.toolsList.findItems( |
130 menutext, Qt.MatchFlags(Qt.MatchExactly))): |
130 menutext, Qt.MatchFlags(Qt.MatchExactly))): |
131 E5MessageBox.critical( |
131 E5MessageBox.critical( |
132 self, |
132 self, |
133 self.trUtf8("Add tool entry"), |
133 self.trUtf8("Add tool entry"), |
134 self.trUtf8("An entry for the menu text {0} already exists.")\ |
134 self.trUtf8("An entry for the menu text {0} already exists.") |
135 .format(menutext)) |
135 .format(menutext)) |
136 return |
136 return |
137 |
137 |
138 self.toolsList.addItem(menutext) |
138 self.toolsList.addItem(menutext) |
139 tool = { |
139 tool = { |
140 'menutext': menutext, |
140 'menutext': menutext, |