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
8332a26a
Commit
8332a26a
authored
Aug 28, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: toAscii has been deprecated
Ref #8532
parent
b25fe822
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+2
-2
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+1
-1
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
8332a26a
...
...
@@ -1007,7 +1007,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case
ACTION_ENQUEUEFILE
:
foreach
(
const
QString
&
uri
,
a
.
uris
)
playlist_Add
(
THEPL
,
uri
.
to
Ascii
().
constData
(),
playlist_Add
(
THEPL
,
uri
.
to
Latin1
().
constData
(),
NULL
,
PLAYLIST_APPEND
|
PLAYLIST_PREPARSE
,
PLAYLIST_END
,
getPLRootType
()
==
ROOTTYPE_CURRENT_PLAYING
,
...
...
@@ -1016,7 +1016,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
case
ACTION_ENQUEUEDIR
:
if
(
a
.
uris
.
isEmpty
()
)
break
;
p_input
=
input_item_New
(
a
.
uris
.
first
().
to
Ascii
().
constData
(),
NULL
);
p_input
=
input_item_New
(
a
.
uris
.
first
().
to
Latin1
().
constData
(),
NULL
);
if
(
unlikely
(
p_input
==
NULL
)
)
break
;
/* FIXME: playlist_AddInput() can fail */
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
8332a26a
...
...
@@ -296,7 +296,7 @@ void StandardPLPanel::popupAction( QAction *action )
case
VLCModelSubInterface
:
:
ACTION_EXPLORE
:
/* locally handled only */
temp
=
model
->
getURI
(
index
);
if
(
!
temp
.
isEmpty
()
)
path
=
make_path
(
temp
.
to
Ascii
().
constData
()
);
if
(
!
temp
.
isEmpty
()
)
path
=
make_path
(
temp
.
to
Latin1
().
constData
()
);
if
(
path
==
NULL
)
return
;
QDesktopServices
::
openUrl
(
QUrl
::
fromLocalFile
(
QFileInfo
(
qfu
(
path
)
).
absolutePath
()
)
);
...
...
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