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..
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
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 );
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.