diff --git a/src/addressbook.cpp b/src/addressbook.cpp index 4725959..975c3e5 100644 --- a/src/addressbook.cpp +++ b/src/addressbook.cpp @@ -166,7 +166,7 @@ void AddressBook::open(MainWindow* parent, QLineEdit* target) // Add new address button QObject::connect(ab.addNew, &QPushButton::clicked, [&] () { auto addr = ab.addr->text().trimmed(); - auto myAddr = ab.addr->text().trimmed(); + auto myAddr = ab.addr_chat->text().trimmed(); QString newLabel = ab.label->text(); QString cid = QUuid::createUuid().toString(QUuid::WithoutBraces);