Commit e9b11556 authored by Ralf Engels's avatar Ralf Engels
Browse files

Group by directory don't work in main playlist

It was just not implemented and had a FIXME comment.

BUG: 265415
FIXED-IN: 2.8
parent 95e69445
......@@ -33,6 +33,7 @@
#include "playlist/PlaylistDefines.h"
#include <QVariant>
#include <QFileInfo>
Playlist::GroupingProxy::GroupingProxy( Playlist::AbstractModel *belowModel, QObject *parent )
......@@ -310,7 +311,9 @@ Playlist::GroupingProxy::shouldBeGrouped( Meta::TrackPtr track1, Meta::TrackPtr
if( track1 && track1->composer() && track2 && track2->composer() )
return ( *track1->composer().data() ) == ( *track2->composer().data() );
case 3: //Directory
return false; //FIXME
if( track1 && track2 )
return ( QFileInfo( track1->playableUrl().path() ).path() ) ==
( QFileInfo( track2->playableUrl().path() ).path() );
case 4: //Genre
if( track1 && track1->genre() && track2 && track2->genre() )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment