108 res = QMessageBox.information(self, |
108 res = QMessageBox.information(self, |
109 self.trUtf8("Remove Documentation"), |
109 self.trUtf8("Remove Documentation"), |
110 self.trUtf8("""Some documents currently opened reference the """ |
110 self.trUtf8("""Some documents currently opened reference the """ |
111 """documentation you are attempting to remove. """ |
111 """documentation you are attempting to remove. """ |
112 """Removing the documentation will close those """ |
112 """Removing the documentation will close those """ |
113 """documents."""), |
113 """documents. Remove anyway?"""), |
114 QMessageBox.StandardButtons(\ |
114 QMessageBox.StandardButtons(\ |
115 QMessageBox.Cancel | \ |
115 QMessageBox.Yes | \ |
116 QMessageBox.Ok)) |
116 QMessageBox.No), |
117 if res == QMessageBox.Cancel: |
117 QMessageBox.No) |
|
118 if res == QMessageBox.No: |
118 return |
119 return |
119 self.__unregisteredDocs.append(ns) |
120 self.__unregisteredDocs.append(ns) |
120 for id in openedDocs: |
121 for id in openedDocs: |
121 if openedDocs[id] == ns and id not in self.__tabsToClose: |
122 if openedDocs[id] == ns and id not in self.__tabsToClose: |
122 self.__tabsToClose.append(id) |
123 self.__tabsToClose.append(id) |