Version: (using KDE KDE 3.5.5)
Installed from: Compiled From Sources
Deleting a user-defined search is too easy.
Because there is no undo this
destroys a complicated advanced search unrecoverably.
Created attachment 21011 [details]
introduce warningYesNo before deleting
Gilles, what about this patch, may I apply it
(just checked that it still compiles and works)?
Fine for me. Let's go
SVN commit 706464 by abaecker:
Add Yes/No Warning when deleting a search to avoid accidental removal of complex searches.
M +13 -0 searchfolderview.cpp
--- branches/extragear/kde3/graphics/digikam/digikam/searchfolderview.cpp #706463:706464
@@ -35,6 +35,7 @@
@@ -270,6 +271,18 @@
+ // Make sure that a complicated search is not deleted accidentally
+ int result =KMessageBox::warningYesNo( this, i18n("Are you sure you want to "
+ "delete the selected search "
+ i18n("Delete Search?"),
+ KStdGuiItem::cancel() );
+ if (result != KMessageBox::Yes)
Warning. This patch much be backported to KDE4 implementation. Do not close it yet (:=)))
backported to KDE4 with commit #706466