Merge pull request #416 from leofidus/patch-1
Correct handling of dogecoin:// URI scheme
This commit is contained in:
commit
88d29a1d3c
|
@ -97,7 +97,7 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent)
|
||||||
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
|
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
|
||||||
{
|
{
|
||||||
// return if URI is not valid or is no dogecoin: URI
|
// return if URI is not valid or is no dogecoin: URI
|
||||||
if(!uri.isValid() || uri.scheme() != QString("bitcoin"))
|
if(!uri.isValid() || uri.scheme() != QString("dogecoin"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SendCoinsRecipient rv;
|
SendCoinsRecipient rv;
|
||||||
|
@ -162,7 +162,7 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
|
||||||
// which will lower-case it (and thus invalidate the address).
|
// which will lower-case it (and thus invalidate the address).
|
||||||
if(uri.startsWith("dogecoin://", Qt::CaseInsensitive))
|
if(uri.startsWith("dogecoin://", Qt::CaseInsensitive))
|
||||||
{
|
{
|
||||||
uri.replace(0, 10, "dogecoin:");
|
uri.replace(0, 11, "dogecoin:");
|
||||||
}
|
}
|
||||||
QUrl uriInstance(uri);
|
QUrl uriInstance(uri);
|
||||||
return parseBitcoinURI(uriInstance, out);
|
return parseBitcoinURI(uriInstance, out);
|
||||||
|
|
Loading…
Reference in a new issue