Set correct prefix for URI
[novacoin.git] / src / qt / guiutil.cpp
index bc10f1c..f6ad8ed 100644 (file)
@@ -77,7 +77,8 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent)
 
 bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
 {
-    if(uri.scheme() != QString("bitcoin"))
+    // NovaCoin: check prefix
+    if(uri.scheme() != QString("novacoin"))
         return false;
 
     SendCoinsRecipient rv;
@@ -122,13 +123,13 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
 
 bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
 {
-    // Convert bitcoin:// to bitcoin:
+    // Convert novacoin:// to novacoin:
     //
     //    Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host,
     //    which will lower-case it (and thus invalidate the address).
-    if(uri.startsWith("bitcoin://"))
+    if(uri.startsWith("novacoin://"))
     {
-        uri.replace(0, 10, "bitcoin:");
+        uri.replace(0, 10, "novacoin:");
     }
     QUrl uriInstance(uri);
     return parseBitcoinURI(uriInstance, out);