--- a/E5Gui/E5ToolBarDialog.py Tue Aug 31 13:39:24 2010 +0200 +++ b/E5Gui/E5ToolBarDialog.py Tue Aug 31 16:38:06 2010 +0200 @@ -149,15 +149,11 @@ Private slot to remove a custom toolbar """ name = self.toolbarComboBox.currentText() - res = E5MessageBox.question(self, + res = E5MessageBox.yesNo(self, self.trUtf8("Remove Toolbar"), self.trUtf8("""Should the toolbar <b>{0}</b> really be removed?""")\ - .format(name), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res == QMessageBox.Yes: + .format(name)) + if res: index = self.toolbarComboBox.currentIndex() tbItemID = self.toolbarComboBox.itemData(index) tbItem = self.__toolbarItems[tbItemID] @@ -456,4 +452,4 @@ tbID = self.__currentToolBarItem.toolBarId actions = self.__manager.defaultToolBarActions(tbID) self.__restoreCurrentToolbar(actions) - self.__currentToolBarItem.isChanged = True \ No newline at end of file + self.__currentToolBarItem.isChanged = True