diff --git a/camp/campwizard.cpp b/camp/campwizard.cpp index 6cf951e..09814ad 100644 --- a/camp/campwizard.cpp +++ b/camp/campwizard.cpp @@ -129,7 +129,7 @@ CampWizard::CampWizard(QWidget *parent) : Service addrSrv; m_addrHelperBinder = new ObjectBinder(this); - m_addrHelperBinder->registerBinding(ui->address, ComboData::createComboData(addrSrv.all())); + m_addrHelperBinder->registerBinding(ui->address, ComboData::createComboData(addrSrv.all("", "lastName, firstName"))); m_addrHelperBinder->setData(m_addrHelper); m_addressBinder = new ObjectBinder(this); diff --git a/shop/receiptsaveform.cpp b/shop/receiptsaveform.cpp index e8cb47c..df8586a 100644 --- a/shop/receiptsaveform.cpp +++ b/shop/receiptsaveform.cpp @@ -54,7 +54,7 @@ ReceiptSaveForm::ReceiptSaveForm(QSharedPointer voucher, QWidget *paren m_binder.setData(voucher.data()); AddressBookService srvAdb; - m_binder.registerBinding(ui->contact, ComboData::createComboData(srvAdb.all())); + m_binder.registerBinding(ui->contact, ComboData::createComboData(srvAdb.all("", "lastName, firstName"))); m_binder.registerBinding(ui->name); m_binder.registerBinding(ui->description); m_binder.bindToUi();