From 4442d3aa596280927e869e42a4b5014b166977a3 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Mon, 14 Jan 2019 15:23:52 -0800 Subject: [PATCH] Don't show error on cancel --- src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 749c204..3ec9b68 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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();