Compare commits

...

1 Commits

  1. 8
      src/mainwindow.cpp
  2. 21
      src/privkey.ui

8
src/mainwindow.cpp

@ -947,8 +947,8 @@ void MainWindow::donate() {
} }
rpc->importTPrivKey(key, [=] (auto) { this->doImport(keys); }); rpc->importTPrivKey(key, [=] (auto) { this->doImport(keys); });
}else{ }else{
QMessageBox::critical(this, tr("Wrong Privatkey format"), QMessageBox::critical(this, tr("Wrong Private key format"),
tr("Privatkey should start with 5, K, L or U (for taddr) or secret- (for zaddr)") + "\n"); tr("Private key should start with 5, K, L or U (for taddr) or secret- (for zaddr)") + "\n");
return; return;
} }
} }
@ -1097,9 +1097,7 @@ void MainWindow::payhushURI(QString uri, QString myAddr) {
}); });
}else if ((pui.rescan->isChecked() == true) && (pui.privKeyTxt->toPlainText().startsWith("secret"))){ }else if ((pui.rescan->isChecked() == true) && (pui.privKeyTxt->toPlainText().startsWith("secret"))){
// Show the dialog that keys will be imported.
// Show the dialog that keys will be imported.
QMessageBox::information(this, QMessageBox::information(this,
"Imported", tr("The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited"), "Imported", tr("The keys were imported. It may take several minutes to rescan the blockchain. Until then, functionality may be limited"),
QMessageBox::Ok); QMessageBox::Ok);

21
src/privkey.ui

@ -28,7 +28,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2"> <item row="2" column="4">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -38,7 +38,24 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1">
<item row="2" column="1">
<widget class="QLineEdit" name="rescanHeight">
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelrescanHeight">
<property name="text">
<string> Rescan Height (Birthday Block) </string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QRadioButton" name="rescan"> <widget class="QRadioButton" name="rescan">
<property name="text"> <property name="text">
<string>Rescan Wallet</string> <string>Rescan Wallet</string>

Loading…
Cancel
Save