Adding direct add contact back
diff --git a/src/contactpanel.cpp b/src/contactpanel.cpp
index adcb32d..4ee8d71 100644
--- a/src/contactpanel.cpp
+++ b/src/contactpanel.cpp
@@ -119,11 +119,12 @@
connect(m_profileEditor, SIGNAL(noKeyOrCert(const QString&)),
this, SLOT(showWarning(const QString&)));
- // connect(ui->AddContactButton, SIGNAL(clicked()),
- // this, SLOT(openAddContactPanel()));
connect(ui->AddContactButton, SIGNAL(clicked()),
this, SLOT(openBrowseContactDialog()));
+ connect(m_browseContactDialog, SIGNAL(directAddClicked()),
+ this, SLOT(openAddContactPanel()));
+
connect(this, SIGNAL(refreshCertDirectory()),
m_browseContactDialog, SLOT(refreshList()));
@@ -133,6 +134,8 @@
connect(ui->settingButton, SIGNAL(clicked()),
this, SLOT(openSettingDialog()));
+ connect(m_addContactPanel, SIGNAL(newContactAdded()),
+ this, SLOT(refreshContactList()));
connect(m_browseContactDialog, SIGNAL(newContactAdded()),
this, SLOT(refreshContactList()));
connect(m_setAliasDialog, SIGNAL(aliasChanged()),