Don't show error on cancel

This commit is contained in:
Aditya Kulkarni
2019-01-14 15:23:52 -08:00
parent 2408fecb07
commit 4442d3aa59

View File

@@ -671,6 +671,9 @@ void MainWindow::payZcashURI() {
QString uri = QInputDialog::getText(this, tr("Paste Zcash URI"),
"Zcash URI" + QString(" ").repeated(180));
if (uri.isEmpty())
return;
// URI should be of the form zcash://address?amt=x&memo=y
if (!uri.startsWith("zcash:")) {
payZcashURIError();