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
e825ac86
Commit
e825ac86
authored
Jun 16, 2008
by
Jean-Philippe Andre
Committed by
Jean-Baptiste Kempf
Jun 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt menus: prefer THEMIM->getInput()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
68b2161a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+4
-7
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
e825ac86
...
...
@@ -36,6 +36,7 @@
#include "main_interface.hpp"
#include "menus.hpp"
#include <vlc_intf_strings.h>
#include "input_manager.hpp"
/* The dialogs */
#include "dialogs/playlist.hpp"
...
...
@@ -532,19 +533,15 @@ void DialogsProvider::doInteraction( intf_dialog_args_t *p_arg )
void
DialogsProvider
::
loadSubtitlesFile
()
{
playlist_t
*
p_playlist
=
pl_Yield
(
p_intf
);
if
(
!
p_playlist
||
!
p_playlist
->
p_input
)
{
msg_Err
(
p_intf
,
"cannot get input"
);
input_thread_t
*
p_input
=
THEMIM
->
getInput
();
if
(
!
p_input
)
return
;
}
QString
qsFile
=
QFileDialog
::
getOpenFileName
(
NULL
,
qtr
(
"Choose subtitles file"
),
""
,
qtr
(
"Subtitles files (*.cdg *.idx *.srt *.sub *.utf);;"
"All files (*)"
)
);
if
(
!
input_AddSubtitles
(
p_
playlist
->
p_
input
,
qtu
(
qsFile
),
true
)
)
if
(
!
input_AddSubtitles
(
p_input
,
qtu
(
qsFile
),
true
)
)
msg_Warn
(
p_intf
,
"unable to load subtitles file..."
);
pl_Release
(
p_playlist
);
}
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