add a first Button for a new HushChat Address on chattab

This commit is contained in:
DenioD
2020-05-07 21:57:47 +02:00
parent 9600242e70
commit 8183b245c6
5 changed files with 51 additions and 8 deletions

View File

@@ -535,12 +535,14 @@ void::MainWindow::addContact() {
return;
}
////// We need a better popup here.
///////Todo: Test if label allready exist!
////// Success, so show it
AddressBook::getInstance()->addAddressLabel(newLabel, addr, myAddr, cid, avatar);
QMessageBox::critical(
QMessageBox::information(
this,
QObject::tr("Add Successfully"),
QObject::tr("juhu").arg(newLabel),
QObject::tr("Added Contact"),
QObject::tr("successfully added your new contact").arg(newLabel),
QMessageBox::Ok
);
return;