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
f73e1071
Commit
f73e1071
authored
Nov 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: simplification
parent
15b329e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+6
-9
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
f73e1071
...
...
@@ -433,19 +433,16 @@ QStringList DialogsProvider::showSimpleOpen( const QString& help,
void
DialogsProvider
::
addFromSimple
(
bool
pl
,
bool
go
)
{
QStringList
files
=
DialogsProvider
::
showSimpleOpen
();
int
i
=
0
;
int
mode
=
go
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
;
files
.
sort
();
foreach
(
const
QString
&
file
,
files
)
{
char
*
psz_uri
=
make_URI
(
qtu
(
toNativeSeparators
(
file
)
),
NULL
);
playlist_Add
(
THEPL
,
psz_uri
,
NULL
,
go
?
(
PLAYLIST_APPEND
|
(
i
?
PLAYLIST_PREPARSE
:
PLAYLIST_GO
)
)
:
(
PLAYLIST_APPEND
|
PLAYLIST_PREPARSE
),
QString
url
=
toURI
(
file
);
playlist_Add
(
THEPL
,
qtu
(
url
),
NULL
,
PLAYLIST_APPEND
|
mode
,
PLAYLIST_END
,
pl
,
pl_Unlocked
);
free
(
psz_uri
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
toNativeSeparators
(
file
)
);
i
++
;
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
url
);
mode
=
PLAYLIST_PREPARSE
;
}
}
...
...
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