Report server in error when saving wallet as part of rescan
This commit is contained in:
@@ -244,13 +244,13 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
QJsonObject parsed = jd_reply.object();
|
QJsonObject parsed = jd_reply.object();
|
||||||
|
|
||||||
if (parsed.isEmpty() || parsed["result"].isNull()) {
|
if (parsed.isEmpty() || parsed["result"].isNull()) {
|
||||||
QMessageBox::warning(this, tr("Failed to save wallet"),
|
QMessageBox::warning(this, tr("Failed to save wallet"),
|
||||||
tr("Couldn't save the wallet") + "\n" + reply,
|
tr("Couldn't save the wallet") + "\n" + "server=" + config->server + "\n" + reply,
|
||||||
QMessageBox::Ok);
|
QMessageBox::Ok);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
qDebug() << __func__ << ": saved wallet correctly";
|
qDebug() << __func__ << ": saved wallet correctly";
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog.close();
|
dialog.close();
|
||||||
// To rescan, we clear the wallet state, and then reload the connection
|
// To rescan, we clear the wallet state, and then reload the connection
|
||||||
|
|||||||
Reference in New Issue
Block a user