Skip to content
  • Filip Roséen's avatar
    gui/qt: fix PLModel::action( ACTION_SORT, ... ) · 6ccc5f15
    Filip Roséen authored and François Cartegnie's avatar François Cartegnie committed
    
    
    Given that one should always be able to sort the playlist, aborting sort
    on "indexes.empty()" is inaccurate since we should not mandate that:
    
     - a user either right-clicks on an entity in order to sort, or;
     - has at least one index selected.
    
     This commit fixes the above described issue, as well as the arguments
     passed to PLModel::sort. More specifically, that the first argument is
     the first index (if any), and the second being the root index.
    
    Signed-off-by: default avatarFrancois Cartegnie <fcvlcdev@free.fr>
    6ccc5f15