Cleanup labels code

This commit is contained in:
adityapk00
2019-02-23 09:42:14 -08:00
parent be87587ff5
commit 5eb2a14aec
3 changed files with 37 additions and 27 deletions

View File

@@ -111,7 +111,7 @@ void AddressBook::open(MainWindow* parent, QLineEdit* target) {
}
// Connect the dialog's closing to updating the label address completor
QObject::connect(&d, &QDialog::finished, [=] (auto) { parent->updateLabelsAutoComplete(); });
QObject::connect(&d, &QDialog::finished, [=] (auto) { parent->updateLabels(); });
// If there is a target then make it the addr for the "Add to" button
if (target != nullptr && Settings::isValidAddress(target->text())) {