Bug 437655

Summary: Store fuzzy search without a name
Product: [Applications] digikam Reporter: herb <herb.k>
Component: Searches-SimilarityAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 7.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 7.3.0

Description herb 2021-05-25 12:15:59 UTC
SUMMARY
Using digiKam 7.3.0 snapshot 24.5.2021 it is possible to store a fuzzy-search without a name. 


STEPS TO REPRODUCE
1. Start a fuzzy search that gives some results.
2. Enter a name for this search; now the button to store it becomes enabled.
3. Clear the name field and press button to store the search

OBSERVED RESULT
Search is stored with no name assigned

EXPECTED RESULT
This search should only be stored in case of the name-field is not empty.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-05-25 18:50:16 UTC
Git commit a0e2b46afd4ea39549a7c89afab0b0d6e1e70643 by Maik Qualmann.
Committed on 25/05/2021 at 18:49.
Pushed by mqualmann into branch 'master'.

fix update the save button enabled state
FIXED-IN: 7.3.0

M  +2    -1    NEWS
M  +4    -5    core/utilities/fuzzysearch/fuzzysearchview_similar.cpp
M  +2    -5    core/utilities/fuzzysearch/fuzzysearchview_sketch.cpp

https://invent.kde.org/graphics/digikam/commit/a0e2b46afd4ea39549a7c89afab0b0d6e1e70643