Fixes to add to contacts button and contact naming.
[jenirok] / src / gui / detailwindow.cpp
index 39cc7bf..4d6107d 100644 (file)
@@ -158,7 +158,7 @@ void DetailWindow::addToContacts()
     QString street;
     getDetails(street, number,
                contact.zipCode, contact.city, contact.street);
-    contact.name = addContactInput_->text();
+    ContactManager::stringToName(addContactInput_->text(), contact.name);
     contact.number = numberButton_->valueText();
     contact.country = country_;