@ -99,11 +99,11 @@ void SendCoinsEntry::clear()
ui - > messageTextLabel - > clear ( ) ;
ui - > messageTextLabel - > clear ( ) ;
ui - > messageTextLabel - > hide ( ) ;
ui - > messageTextLabel - > hide ( ) ;
ui - > messageLabel - > hide ( ) ;
ui - > messageLabel - > hide ( ) ;
// clear UI elements for insecure payment request
// clear UI elements for unauthenticated payment request
ui - > payTo_is - > clear ( ) ;
ui - > payTo_is - > clear ( ) ;
ui - > memoTextLabel_is - > clear ( ) ;
ui - > memoTextLabel_is - > clear ( ) ;
ui - > payAmount_is - > clear ( ) ;
ui - > payAmount_is - > clear ( ) ;
// clear UI elements for secure payment request
// clear UI elements for authenticated payment request
ui - > payTo_s - > clear ( ) ;
ui - > payTo_s - > clear ( ) ;
ui - > memoTextLabel_s - > clear ( ) ;
ui - > memoTextLabel_s - > clear ( ) ;
ui - > payAmount_s - > clear ( ) ;
ui - > payAmount_s - > clear ( ) ;
@ -190,21 +190,21 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
if ( recipient . paymentRequest . IsInitialized ( ) ) // payment request
if ( recipient . paymentRequest . IsInitialized ( ) ) // payment request
{
{
if ( recipient . authenticatedMerchant . isEmpty ( ) ) // insecure
if ( recipient . authenticatedMerchant . isEmpty ( ) ) // unauthenticated
{
{
ui - > payTo_is - > setText ( recipient . address ) ;
ui - > payTo_is - > setText ( recipient . address ) ;
ui - > memoTextLabel_is - > setText ( recipient . message ) ;
ui - > memoTextLabel_is - > setText ( recipient . message ) ;
ui - > payAmount_is - > setValue ( recipient . amount ) ;
ui - > payAmount_is - > setValue ( recipient . amount ) ;
ui - > payAmount_is - > setReadOnly ( true ) ;
ui - > payAmount_is - > setReadOnly ( true ) ;
setCurrentWidget ( ui - > SendCoins_Insecure PaymentRequest ) ;
setCurrentWidget ( ui - > SendCoins_Unauthenticated PaymentRequest ) ;
}
}
else // secure
else // authenticated
{
{
ui - > payTo_s - > setText ( recipient . authenticatedMerchant ) ;
ui - > payTo_s - > setText ( recipient . authenticatedMerchant ) ;
ui - > memoTextLabel_s - > setText ( recipient . message ) ;
ui - > memoTextLabel_s - > setText ( recipient . message ) ;
ui - > payAmount_s - > setValue ( recipient . amount ) ;
ui - > payAmount_s - > setValue ( recipient . amount ) ;
ui - > payAmount_s - > setReadOnly ( true ) ;
ui - > payAmount_s - > setReadOnly ( true ) ;
setCurrentWidget ( ui - > SendCoins_Secure PaymentRequest ) ;
setCurrentWidget ( ui - > SendCoins_Authenticated PaymentRequest ) ;
}
}
}
}
else // normal payment
else // normal payment