-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 7c52ef2..75e539a 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -357,8 +357,20 @@ void AddressbookWindow::slotItemEdit() } void AddressbookWindow::slotItemDuplicate() { + if(!syncing) + { + Opie::OPimContact entry = m_abView->currentEntry(); + entry.assignUid(); + m_abView->addEntry( entry ); + m_abView->setCurrentUid( entry.uid() ); + } + else + { + QMessageBox::warning( this, tr("Contacts"), + tr("Can not edit data, currently syncing") ); + } } void AddressbookWindow::slotItemDelete() { |