Add ComboBox for avatar
This commit is contained in:
@@ -1319,6 +1319,7 @@ void MainWindow::setupReceiveTab() {
|
||||
// Receive tab add/update label
|
||||
QObject::connect(ui->rcvUpdateLabel, &QPushButton::clicked, [=]() {
|
||||
QString addr = ui->listReceiveAddresses->currentText();
|
||||
|
||||
if (addr.isEmpty())
|
||||
return;
|
||||
|
||||
@@ -1332,7 +1333,7 @@ void MainWindow::setupReceiveTab() {
|
||||
|
||||
if (!curLabel.isEmpty() && label.isEmpty()) {
|
||||
info = "Removed Label '" % curLabel % "'";
|
||||
AddressBook::getInstance()->removeAddressLabel(curLabel, addr, "", "");
|
||||
AddressBook::getInstance()->removeAddressLabel(curLabel, addr, "", "","" );
|
||||
}
|
||||
else if (!curLabel.isEmpty() && !label.isEmpty()) {
|
||||
info = "Updated Label '" % curLabel % "' to '" % label % "'";
|
||||
@@ -1340,7 +1341,7 @@ void MainWindow::setupReceiveTab() {
|
||||
}
|
||||
else if (curLabel.isEmpty() && !label.isEmpty()) {
|
||||
info = "Added Label '" % label % "'";
|
||||
AddressBook::getInstance()->addAddressLabel(label, addr, "", "");
|
||||
AddressBook::getInstance()->addAddressLabel(label, addr, "", "", "");
|
||||
}
|
||||
|
||||
// Update labels everywhere on the UI
|
||||
|
||||
Reference in New Issue
Block a user