1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-26 12:53:41 +01:00

DRY: Use GAM logic instead of build an own one in MPRIS

This commit is contained in:
Uwe L. Korn 2013-07-28 13:02:50 +02:00
parent 832305008b
commit 5884db1e3b

View File

@ -364,12 +364,9 @@ MprisPlugin::Next()
void
MprisPlugin::OpenUri( const QString& Uri )
MprisPlugin::OpenUri( const QString& uri )
{
if ( Uri.contains( "tomahawk://" ) )
GlobalActionManager::instance()->parseTomahawkLink( Uri );
else if ( Uri.contains( "spotify:" ) )
GlobalActionManager::instance()->openSpotifyLink( Uri );
GlobalActionManager::instance()->openUrl( uri );
}