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
4607174b
Commit
4607174b
authored
May 18, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: DialogsProvider, use the open helper
parent
c57be0a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+5
-10
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
4607174b
...
...
@@ -440,16 +440,14 @@ QStringList DialogsProvider::showSimpleOpen( const QString& help,
void
DialogsProvider
::
addFromSimple
(
bool
pl
,
bool
go
)
{
QStringList
files
=
DialogsProvider
::
showSimpleOpen
();
int
mode
=
go
?
PLAYLIST_GO
:
PLAYLIST_PREPARSE
;
bool
first
=
go
;
files
.
sort
();
foreach
(
const
QString
&
file
,
files
)
{
QString
url
=
toURI
(
toNativeSeparators
(
file
)
);
playlist_Add
(
THEPL
,
qtu
(
url
),
NULL
,
PLAYLIST_APPEND
|
mode
,
PLAYLIST_END
,
pl
,
pl_Unlocked
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
url
);
mode
=
PLAYLIST_PREPARSE
;
Open
::
openMRL
(
p_intf
,
url
,
first
,
pl
);
first
=
false
;
}
}
...
...
@@ -481,11 +479,8 @@ void DialogsProvider::openUrlDialog()
url
=
qfu
(
uri
);
free
(
uri
);
}
playlist_Add
(
THEPL
,
qtu
(
url
),
NULL
,
!
oud
.
shouldEnqueue
()
?
(
PLAYLIST_APPEND
|
PLAYLIST_GO
)
:
(
PLAYLIST_APPEND
|
PLAYLIST_PREPARSE
),
PLAYLIST_END
,
true
,
pl_Unlocked
);
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
url
);
Open
::
openMRL
(
p_intf
,
qtu
(
url
),
!
oud
.
shouldEnqueue
()
);
}
/* Directory */
...
...
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