Commit c57be0a7 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: use the new helper for Main Interface DnD actions

parent 04cb2556
......@@ -1324,11 +1324,8 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play, bool b_playli
}
if( mrl.length() > 0 )
{
playlist_Add( THEPL, qtu(mrl), NULL,
PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
PLAYLIST_END, b_playlist, pl_Unlocked );
Open::openMRL( p_intf, mrl, first, b_playlist );
first = false;
RecentsMRL::getInstance( p_intf )->addRecent( mrl );
}
}
}
......@@ -1340,9 +1337,7 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play, bool b_playli
QUrl(mimeData->text()).isValid() )
{
QString mrl = toURI( mimeData->text() );
playlist_Add( THEPL, qtu(mrl), NULL,
PLAYLIST_APPEND | (first ? PLAYLIST_GO: PLAYLIST_PREPARSE),
PLAYLIST_END, b_playlist, pl_Unlocked );
Open::openMRL( p_intf, mrl, first, b_playlist );
}
event->accept();
}
......
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