aboutsummaryrefslogtreecommitdiff
path: root/gui/src/addressbookdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/addressbookdialog.cpp')
-rw-r--r--gui/src/addressbookdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/src/addressbookdialog.cpp b/gui/src/addressbookdialog.cpp
index 9b9e9bbc8e..35078d3aea 100644
--- a/gui/src/addressbookdialog.cpp
+++ b/gui/src/addressbookdialog.cpp
@@ -14,9 +14,6 @@ AddressBookDialog::AddressBookDialog(QWidget *parent) :
model(0)
{
ui->setupUi(this);
-
- model = new AddressTableModel(this);
- setModel(model);
}
AddressBookDialog::~AddressBookDialog()
@@ -26,6 +23,9 @@ AddressBookDialog::~AddressBookDialog()
void AddressBookDialog::setModel(AddressTableModel *model)
{
+ /* Refresh list from core */
+ model->updateList();
+
/* Receive filter */
QSortFilterProxyModel *receive_model = new QSortFilterProxyModel(this);
receive_model->setSourceModel(model);