[vlc-commits] Qt: use the new helper for Main Interface DnD actions
Jean-Baptiste Kempf
git at videolan.org
Sun May 18 16:42:52 CEST 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 18 16:31:36 2014 +0200| [c57be0a73baab69ef7da395ef398a8f2a994bec4] | committer: Jean-Baptiste Kempf
Qt: use the new helper for Main Interface DnD actions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c57be0a73baab69ef7da395ef398a8f2a994bec4
---
modules/gui/qt4/main_interface.cpp | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 6f69b36..98908c3 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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();
}
More information about the vlc-commits
mailing list