Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c4961610
Commit
c4961610
authored
Apr 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: allow drag and drop of any URL, not just a local file
parent
679b3fb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+2
-4
No files found.
modules/gui/qt4/main_interface.cpp
View file @
c4961610
...
...
@@ -1015,14 +1015,12 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
bool
first
=
b_play
;
foreach
(
const
QUrl
&
url
,
mimeData
->
urls
()
)
{
QString
s
=
toNativeSeparators
(
url
.
toLocalFile
()
);
QString
s
=
url
.
toString
(
);
if
(
s
.
length
()
>
0
)
{
char
*
psz_uri
=
make_URI
(
qtu
(
s
)
);
playlist_Add
(
THEPL
,
psz_uri
,
NULL
,
playlist_Add
(
THEPL
,
qtu
(
s
),
NULL
,
PLAYLIST_APPEND
|
(
first
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
true
,
pl_Unlocked
);
free
(
psz_uri
);
first
=
false
;
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
s
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment