Commit 04cb2556 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: move playMRL slot from THEDP to RecentsMRL

parent f2f7fd69
......@@ -813,12 +813,3 @@ void DialogsProvider::SDMenuAction( const QString& data )
playlist_ServicesDiscoveryRemove( THEPL, qtu( data ) );
}
/**
* Play the MRL contained in the Recently played menu.
**/
void DialogsProvider::playMRL( const QString &mrl )
{
playlist_Add( THEPL, qtu(mrl), NULL,
PLAYLIST_APPEND | PLAYLIST_GO , PLAYLIST_END, true, pl_Unlocked );
RecentsMRL::getInstance( p_intf )->addRecent( mrl );
}
......@@ -110,8 +110,6 @@ private:
void saveAPlaylist(playlist_t *p_playlist, playlist_item_t *p_node);
public slots:
void playMRL( const QString & );
void playlistDialog();
void bookmarksDialog();
void mediaInfoDialog();
......
......@@ -55,7 +55,7 @@ RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
signalMapper = new QSignalMapper( this );
CONNECT( signalMapper,
mapped(const QString & ),
DialogsProvider::getInstance( p_intf ),
this,
playMRL( const QString & ) );
/* Load the filter psz */
......@@ -163,6 +163,11 @@ playlist_item_t *RecentsMRL::toPlaylist(int length)
return p_node_recent;
}
void RecentsMRL::playMRL( const QString &mrl )
{
Open::openMRL( p_intf, mrl );
}
void Open::openMRL( intf_thread_t *p_intf,
const QString &mrl,
bool b_start,
......
......@@ -66,8 +66,10 @@ private:
void load();
void save();
public slots:
void clear();
void playMRL( const QString & );
};
#endif
Markdown is supported
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