Adding direct add contact back
diff --git a/src/browsecontactdialog.cpp b/src/browsecontactdialog.cpp
index 0ec1e37..e556e0c 100644
--- a/src/browsecontactdialog.cpp
+++ b/src/browsecontactdialog.cpp
@@ -54,8 +54,8 @@
connect(ui->AddButton, SIGNAL(clicked()),
this, SLOT(onAddClicked()));
- connect(ui->CancelButton, SIGNAL(clicked()),
- this, SLOT(onCancelClicked()));
+ connect(ui->DirectAddButton, SIGNAL(clicked()),
+ this, SLOT(onDirectAddClicked()));
}
BrowseContactDialog::~BrowseContactDialog()
@@ -306,8 +306,11 @@
}
void
-BrowseContactDialog::onCancelClicked()
-{ this->close(); }
+BrowseContactDialog::onDirectAddClicked()
+{
+ emit directAddClicked();
+ this->close();
+}
void
BrowseContactDialog::closeEvent(QCloseEvent *e)