Skip to content
  • Giorgos Kylafas's avatar
    juk: load search playlists even when containing empty patterns. · aefff3f3
    Giorgos Kylafas authored
    When a new search playlist is created, we are allowed to not fill any
    "search lines" with our criteria. This means that when a new search
    playlist is created/saved, it may contain search components with empty
    patterns. However, when loading a search playlist from disk, we signal
    an error if we read an empty search pattern. As a result, the playlist
    does not get loaded and JuK gives the impression that it does not save
    the search playlists.
    
    Since we are presented with two search lines when creating a new search
    playlist (see AdvancedSearchDialog's ctor), the above has a rather high
    chance of happening.
    
    So, upon loading, we should not consider the presense of empty patterns
    as an error.
    
    svn path=/trunk/KDE/kdemultimedia/juk/; revision=1235482
    aefff3f3