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
2283cdda
Commit
2283cdda
authored
Jan 04, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: save playlist: force native dialog
parent
2e2de104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+5
-12
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
2283cdda
...
...
@@ -595,19 +595,12 @@ void DialogsProvider::saveAPlaylist()
}
QString
selected
;
QFileDialog
*
dialog
=
new
QFileDialog
(
NULL
,
qtr
(
"Save playlist as..."
),
QString
(
p_intf
->
p_sys
->
filepath
),
filters
.
join
(
";;"
)
);
dialog
->
setDefaultSuffix
(
qfu
(
types
[
0
].
filter_patterns
)
);
dialog
->
setAcceptMode
(
QFileDialog
::
AcceptSave
);
dialog
->
exec
();
QString
file
=
dialog
->
selectedFiles
().
first
();
QString
nameFilter
=
dialog
->
selectedNameFilter
();
QString
file
=
QFileDialog
::
getSaveFileName
(
NULL
,
qtr
(
"Save playlist as..."
),
p_intf
->
p_sys
->
filepath
,
filters
.
join
(
";;"
),
&
selected
);
const
char
*
psz_selected_module
=
NULL
;
const
char
*
psz_last_playlist_ext
=
NULL
;
delete
dialog
;
if
(
file
.
isEmpty
()
)
return
;
...
...
@@ -628,7 +621,7 @@ void DialogsProvider::saveAPlaylist()
{
for
(
size_t
i
=
0
;
i
<
sizeof
(
types
)
/
sizeof
(
types
[
0
]);
i
++
)
{
if
(
nameFilter
.
startsWith
(
vlc_gettext
(
types
[
i
].
filter_name
)
)
)
if
(
selected
.
startsWith
(
vlc_gettext
(
types
[
i
].
filter_name
)
)
)
{
psz_selected_module
=
types
[
i
].
module
;
psz_last_playlist_ext
=
types
[
i
].
filter_patterns
;
...
...
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