Browse Source

Trim leading and trailing whitespace from rescan height when importing a privkey

pull/145/head
Duke 4 months ago
parent
commit
a0cc4184bc
  1. 4
      src/mainwindow.cpp

4
src/mainwindow.cpp

@ -1324,8 +1324,8 @@ void MainWindow::importPrivKey() {
doImport(keysValidated);
if (rescan) {
//TODO: verify rescanfrom is a valid integer and trim whitespace
rpc->rescan(pui.rescanfrom->text().toInt() , [=] (QJsonValue response){
//TODO: verify rescanfrom is a valid integer
rpc->rescan(pui.rescanfrom->text().trimmed().toInt() , [=] (QJsonValue response){
qDebug() << __func__ << ":rescanning from height " << pui.rescanfrom->text().toInt() << " finished" << response;
ui->statusBar->showMessage(tr("Rescanning finished"), 5000);
});

Loading…
Cancel
Save