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
6a4c2d79
Commit
6a4c2d79
authored
Jul 24, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use native dialog for saving VLM files.
parent
afce97e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
23 deletions
+9
-23
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+9
-23
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
6a4c2d79
...
@@ -265,35 +265,21 @@ void VLMDialog::addVLMItem()
...
@@ -265,35 +265,21 @@ void VLMDialog::addVLMItem()
/* TODO : VOD are not exported to the file */
/* TODO : VOD are not exported to the file */
bool
VLMDialog
::
exportVLMConf
()
bool
VLMDialog
::
exportVLMConf
()
{
{
QFileDialog
*
qfd
=
new
QFileDialog
(
this
,
qtr
(
"Save VLM configuration as..."
),
QString
saveVLMConfFileName
=
QFileDialog
::
getSaveFileName
(
this
,
qtr
(
"Save VLM configuration as..."
),
qfu
(
config_GetHomeDir
()
),
qfu
(
config_GetHomeDir
()
),
qtr
(
"VLM conf (*.vlm);;All (*)"
)
);
qtr
(
"VLM conf (*.vlm);;All (*)"
)
);
qfd
->
setFileMode
(
QFileDialog
::
AnyFile
);
qfd
->
setAcceptMode
(
QFileDialog
::
AcceptSave
);
qfd
->
setConfirmOverwrite
(
true
);
bool
exported
=
false
;
if
(
!
saveVLMConfFileName
.
isEmpty
()
)
if
(
qfd
->
exec
()
==
QDialog
::
Accepted
)
{
{
QString
saveVLMConfFileName
=
qfd
->
selectedFiles
().
first
();
vlm_message_t
*
message
;
QString
filter
=
qfd
->
selectedFilter
();
QString
command
=
"save
\"
"
+
saveVLMConfFileName
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
)
,
&
message
);
// If *.vlm is selected, add .vlm at the end if needed
vlm_MessageDelete
(
message
);
if
(
filter
.
contains
(
"VLM"
)
&&
!
saveVLMConfFileName
.
contains
(
".vlm"
)
)
return
true
;
saveVLMConfFileName
.
append
(
".vlm"
);
if
(
!
saveVLMConfFileName
.
isEmpty
()
)
{
vlm_message_t
*
message
;
QString
command
=
"save
\"
"
+
saveVLMConfFileName
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
)
,
&
message
);
vlm_MessageDelete
(
message
);
exported
=
true
;
}
}
}
delete
qfd
;
return
false
;
return
exported
;
}
}
void
VLMDialog
::
mediasPopulator
()
void
VLMDialog
::
mediasPopulator
()
...
...
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