I like how this patch tries to be fairly non-invasive to the existing code, but ...
12 years, 10 months ago
(2012-02-07 21:48:19 UTC)
#1
I like how this patch tries to be fairly non-invasive to the existing code, but
there is one big problem that isn't addressed: library scanning starts
immediately after you add the directory, not when you click "OK". Therefore
when you add a directory it starts scanning and adding all the tracks, and then
when you click cancel it removes them again.
I feel it might be cleaner to actually decouple the list view from the
LibraryDirectoryModel. If you have a separate QStandardItemModel with just the
path strings in it, on "Cancel" you can continue to act as if nothing happened,
and on "OK" you can synchronise the two models. (Basically the opposite to what
this patch does.) This would make sure that your library is completely
unchanged until you actually hit "OK".
Issue 5647044: Cancel button in music library - issue 647
Created 12 years, 10 months ago by vasilakisfil
Modified 2 years, 7 months ago
Reviewers: Alan Briolat
Base URL:
Comments: 0