Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ab61a033
Commit
ab61a033
authored
Nov 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: use toURI()
parent
f73e1071
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+4
-6
No files found.
modules/gui/qt4/main_interface.cpp
View file @
ab61a033
...
...
@@ -1110,11 +1110,10 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
{
if
(
url
.
isValid
()
)
{
char
*
psz_uri
=
make_URI
(
url
.
toEncoded
().
constData
(),
NULL
);
playlist_Add
(
THEPL
,
psz_uri
,
NULL
,
QString
mrl
=
toURI
(
url
.
toEncoded
().
constData
()
);
playlist_Add
(
THEPL
,
qtu
(
mrl
)
,
NULL
,
PLAYLIST_APPEND
|
(
first
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
true
,
pl_Unlocked
);
free
(
psz_uri
);
first
=
false
;
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
url
.
toString
()
);
}
...
...
@@ -1126,11 +1125,10 @@ void MainInterface::dropEventPlay( QDropEvent *event, bool b_play )
if
(
!
mimeData
->
hasUrls
()
&&
mimeData
->
hasText
()
&&
QUrl
(
mimeData
->
text
()).
isValid
()
)
{
char
*
psz_uri
=
make_URI
(
qtu
(
mimeData
->
text
()
),
NULL
);
playlist_Add
(
THEPL
,
psz_uri
,
NULL
,
QString
mrl
=
toURI
(
mimeData
->
text
()
);
playlist_Add
(
THEPL
,
qtu
(
mrl
)
,
NULL
,
PLAYLIST_APPEND
|
(
first
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
true
,
pl_Unlocked
);
free
(
psz_uri
);
}
event
->
accept
();
}
...
...
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