Bug 187265

Summary: Advanced search crashes if a selected album has been deleted
Product: [Applications] digikam Reporter: admajer
Component: Searches-AdvancedAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: admajer
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In: 1.0.0

Description admajer 2009-03-15 23:42:09 UTC
Version:           0.10.0-rc2 (using KDE 4.2.1)
Installed from:    Ubuntu Packages

Search photos by making "Search tab" => "Advanced Search" => "File, Albums, Tags" => "Search pictures located in" => select an album having sub-albums with photos. The search returns all photos in the sub-albums.
Select all photos and move them to a new album.
After the move process is finished, go to the Albums view and delete the original album (and its sub-albums).
Go back to the Search tab.
Clicking on "Advanced Search" again crashes the program.
I suppose that the Advanced Search form crashes when the file chooser combo tries to point to the deleted album.
The above bug cannot be reproduced by starting with just an empty album.
Sorry, no debug info due to the packaging of Ubuntu.
Comment 1 Marcel Wiesweg 2009-04-12 21:40:51 UTC
SVN commit 952890 by mwiesweg:

Remove pointer from checked albums hash when album is deleted.

BUG: 187265

 M  +2 -1      NEWS  
 M  +12 -0     libs/models/abstractalbummodel.cpp  
 M  +3 -0      libs/models/abstractalbummodel.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=952890