diff --git a/src/addressbook.cpp b/src/addressbook.cpp index c839b18..762bea6 100644 --- a/src/addressbook.cpp +++ b/src/addressbook.cpp @@ -3,6 +3,7 @@ #include "ui_mainwindow.h" #include "settings.h" #include "mainwindow.h" +#include "rpc.h" AddressBookModel::AddressBookModel(QTableView *parent) @@ -221,6 +222,9 @@ void AddressBook::open(MainWindow* parent, QLineEdit* target) { fnSetTargetLabelAddr(target, item.first, item.second); } }; + + // Refresh after the dialog is closed to update the labels everywhere. + parent->getRPC()->refresh(true); } //=============