Don't show error on cancel
This commit is contained in:
@@ -671,6 +671,9 @@ void MainWindow::payZcashURI() {
|
|||||||
QString uri = QInputDialog::getText(this, tr("Paste Zcash URI"),
|
QString uri = QInputDialog::getText(this, tr("Paste Zcash URI"),
|
||||||
"Zcash URI" + QString(" ").repeated(180));
|
"Zcash URI" + QString(" ").repeated(180));
|
||||||
|
|
||||||
|
if (uri.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
// URI should be of the form zcash://address?amt=x&memo=y
|
// URI should be of the form zcash://address?amt=x&memo=y
|
||||||
if (!uri.startsWith("zcash:")) {
|
if (!uri.startsWith("zcash:")) {
|
||||||
payZcashURIError();
|
payZcashURIError();
|
||||||
|
|||||||
Reference in New Issue
Block a user