Bug 75460 - cofirm delete of contacts
Summary: cofirm delete of contacts
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-17 21:35 UTC by David Förster
Modified: 2009-08-05 16:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Förster 2004-02-17 21:35:11 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Debian stable Packages

Would be great if deleting contacts had to be confirmed.
(Do you really want to..)

Now, if you delete a contact by mistake there's no way to get it back..
Comment 1 Tobias Koenig 2004-02-17 23:18:33 UTC
On Tue, Feb 17, 2004 at 08:35:13PM -0000, David Förster wrote:
Hi David,

> Would be great if deleting contacts had to be confirmed.
> (Do you really want to..)
> 
> Now, if you delete a contact by mistake there's no way to get it back..
You can Undo/Redo nearly every step in KAddressBook, so also when you
have deleted something mistakenly, nevertheless I'll add the dialog
soon.

Ciao,
Tobias
Comment 2 Tobias Koenig 2004-02-19 12:27:12 UTC
CVS commit by tokoe: 

Show a message box which asks if you really want to delete the selected
contacts. That should fix #75460 as well.

CCMAIL:75460-done@bugs.kde.org


  M +11 -0     kabcore.cpp   1.71


--- kdepim/kaddressbook/kabcore.cpp  #1.70:1.71
@@ -401,4 +401,15 @@ void KABCore::deleteContacts( const QStr
 {
   if ( uids.count() > 0 ) {
+    QStringList names;
+    QStringList::ConstIterator it = uids.begin();
+    while ( it != uids.end() ) {
+      names.append( mAddressBook->findByUid( *it ).formattedName() );
+      ++it;
+    }
+
+    if ( KMessageBox::questionYesNoList( mWidget, i18n( "Do you really want to delete these contacts?" ),
+                                         names ) == KMessageBox::No )
+      return;
+
     PwDeleteCommand *command = new PwDeleteCommand( mAddressBook, uids );
     UndoStack::instance()->push( command );


Comment 3 Tobias Koenig 2009-08-05 16:05:43 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.