diff -r 2631831b4052 -r 00e1a5d060c5 Helpviewer/QtHelpDocumentationDialog.py --- a/Helpviewer/QtHelpDocumentationDialog.py Tue Aug 31 13:39:24 2010 +0200 +++ b/Helpviewer/QtHelpDocumentationDialog.py Tue Aug 31 16:38:06 2010 +0200 @@ -93,12 +93,8 @@ res = E5MessageBox.question(self, self.trUtf8("Remove Documentation"), self.trUtf8("""Do you really want to remove the selected documentation """ - """sets from the database?"""), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res == QMessageBox.No: + """sets from the database?""")) + if not res: return openedDocs = self.__mw.getSourceFileList() @@ -107,17 +103,14 @@ for item in items: ns = item.text() if ns in list(openedDocs.values()): - res = E5MessageBox.warning(self, + res = E5MessageBox.yesNo(self, self.trUtf8("Remove Documentation"), self.trUtf8("""Some documents currently opened reference the """ """documentation you are attempting to remove. """ """Removing the documentation will close those """ """documents. Remove anyway?"""), - QMessageBox.StandardButtons(\ - QMessageBox.Yes | \ - QMessageBox.No), - QMessageBox.No) - if res == QMessageBox.No: + type_ = E5MessageBox.Warning) + if not res: return self.__unregisteredDocs.append(ns) for id in openedDocs: @@ -146,4 +139,4 @@ @return list of tab ids to be closed (list of integers) """ - return self.__tabsToClose \ No newline at end of file + return self.__tabsToClose