--- a/UI/EmailDialog.py Tue Aug 31 13:39:24 2010 +0200 +++ b/UI/EmailDialog.py Tue Aug 31 16:38:06 2010 +0200 @@ -106,14 +106,10 @@ @param ev key event (QKeyEvent) """ if ev.key() == Qt.Key_Escape: - res = E5MessageBox.question(self, + res = E5MessageBox.yesNo(self, self.trUtf8("Close dialog"), - self.trUtf8("""Do you really want to close the dialog?"""), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res == QMessageBox.Yes: + self.trUtf8("""Do you really want to close the dialog?""")) + if res: self.reject() def on_buttonBox_clicked(self, button): @@ -129,14 +125,10 @@ """ Private slot to handle the rejected signal of the button box. """ - res = E5MessageBox.question(self, + res = E5MessageBox.yesNo(self, self.trUtf8("Close dialog"), - self.trUtf8("""Do you really want to close the dialog?"""), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res == QMessageBox.Yes: + self.trUtf8("""Do you really want to close the dialog?""")) + if res: self.reject() @pyqtSlot() @@ -382,4 +374,4 @@ """ self.sendButton.setEnabled(\ self.subject.text() != "" and \ - self.message.toPlainText() != "") \ No newline at end of file + self.message.toPlainText() != "")