@@ -147,6 +147,8 @@ def init_file_menu(self):
147147 "clicked()" ), self .click_pushButtonAddSubscription )
148148 QtCore .QObject .connect (self .ui .pushButtonTTL , QtCore .SIGNAL (
149149 "clicked()" ), self .click_pushButtonTTL )
150+ QtCore .QObject .connect (self .ui .pushButtonClear , QtCore .SIGNAL (
151+ "clicked()" ), self .click_pushButtonClear )
150152 QtCore .QObject .connect (self .ui .pushButtonSend , QtCore .SIGNAL (
151153 "clicked()" ), self .click_pushButtonSend )
152154 QtCore .QObject .connect (self .ui .pushButtonFetchNamecoinID , QtCore .SIGNAL (
@@ -1840,14 +1842,19 @@ def addRow (address, label, type):
18401842 def rerenderSubscriptions (self ):
18411843 self .rerenderTabTreeSubscriptions ()
18421844
1843-
18441845 def click_pushButtonTTL (self ):
18451846 QtGui .QMessageBox .information (self , 'Time To Live' , _translate (
18461847 "MainWindow" , """The TTL, or Time-To-Live is the length of time that the network will hold the message.
18471848 The recipient must get it during this time. If your Bitmessage client does not hear an acknowledgement, it
18481849 will resend the message automatically. The longer the Time-To-Live, the
18491850 more work your computer must do to send the message. A Time-To-Live of four or five days is often appropriate.""" ), QtGui .QMessageBox .Ok )
18501851
1852+ def click_pushButtonClear (self ):
1853+ self .ui .lineEditSubject .setText ("" )
1854+ self .ui .lineEditTo .setText ("" )
1855+ self .ui .textEditMessage .setText ("" )
1856+ self .ui .comboBoxSendFrom .setCurrentIndex (0 )
1857+
18511858 def click_pushButtonSend (self ):
18521859 encoding = 3 if QtGui .QApplication .queryKeyboardModifiers () & QtCore .Qt .ShiftModifier else 2
18531860
0 commit comments