Playlist Additions When Filtering (Proposed Patch)

John Atkinson john at fauxnetic.co.uk
Fri Jul 31 18:35:38 UTC 2009


Hi Nikolaj, others,

Thanks. I've attached an improved patch to the bug report.
http://bugs.kde.org/show_bug.cgi?id=200709

The behaviour described in
bug#193527<https://bugs.kde.org/show_bug.cgi?id=193527>seems to have
been a temporary regression and is fixed in the latest HEAD.

- John



2009/7/30 Nikolaj Hald Nielsen <nhnfreespirit at gmail.com>

> oh, one more thing...
>
> Since we have 2 modes of operation for the playlist searching, search and
> filter, there is little reason to clear the filter if "show only matches" is
> not enabled, as the box in this case works like an incremental search and
> does not cause any items to be hidden. So perhaps this is a check that could
> be added to the patch as well.
>
> - Nikolaj




Hi John
>
>
>
Thanks for the patch.
>
> The attached patch was originally intended to address a usability pet peeve
>> of mine, written up by someone else in bug #200709<https://bugs.kde.org/show_bug.cgi?id=200709>.
>> Quick description: When replacing a playlist and using the search filter, it
>> could be confusing when the playlist appeared blank (as no entries matched
>> the filter).
>>
>> The simple fix is to clear the filter before replacing the playlist.
>
>
> This makes a lot of sense and I agree that clearing the playlist when using
> the "replace" action is a really good idea!
>
> However, further inspection of the bug tracker gives bug#193527<https://bugs.kde.org/show_bug.cgi?id=193527>,
>> where the filter is apparently also applied to anything added to the
>> playlist. This can be fixed in a similar way by clearing the filter before
>> any addition to the playlist. This is what the patch implements.
>
>
> As far as I can tell, these 2 issues are only conceptually related and not
> related code wise. This bug has to do with the filter in the browsers and
> what tracks are actually getting added to the playlist, not which one the
> playlist actually chooses to show. Also, in my opinion, I think this is
> actually the correct behavior. Of course, this is up for discussion.
>
>
>> Hopefully this is a solution to the problem but I thought I would mail
>> because I have concerns that:
>> 1.) Because this uses signals and slots between two widgets (filter and
>> playlist), it may introduce some sort of race condition I'm not aware of.
>
>
> I don't see any issues with it.
>
> 2.) A developer has a grand scheme for these things and this is going to be
>> cleverly redesigned anyway.
>
>
> No, I don't think there are any grand plans regarding this particular
> little fix! :-)
>
>
> The one issue I do have with your current patch is that it clears the
> filter on all inserts, not just when replacing the entire playlist. I have
> been thinking about this for a while, and I think it makes sense to keept he
> filter when working on an existing playlist and only clearing it when doing
> a "replace". So if you can redo the patch to only clear the playlist filter
> in this particular case, I will be happy to commit it! :-)
>
> - Nikolaj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok/attachments/20090731/9b7e4bec/attachment.html>


More information about the Amarok mailing list