527 """ |
527 """ |
528 Private slot to save the contents of the chat display. |
528 Private slot to save the contents of the chat display. |
529 """ |
529 """ |
530 txt = self.chatEdit.toPlainText() |
530 txt = self.chatEdit.toPlainText() |
531 if txt: |
531 if txt: |
532 fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter(\ |
532 fname, selectedFilter = QFileDialog.getSaveFileNameAndFilter( |
533 self, |
533 self, |
534 self.trUtf8("Save Chat"), |
534 self.trUtf8("Save Chat"), |
535 "", |
535 "", |
536 self.trUtf8("Text Files (*.txt);;All Files (*)"), |
536 self.trUtf8("Text Files (*.txt);;All Files (*)"), |
537 None, |
537 None, |