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
ad11acb7
Commit
ad11acb7
authored
Jan 25, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: factorize variable loading in DoAction
parent
fd340a15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+6
-4
No files found.
modules/gui/qt4/menus.cpp
View file @
ad11acb7
...
...
@@ -1512,13 +1512,15 @@ void VLCMenuBar::DoAction( QObject *data )
MenuItemData
*
itemData
=
qobject_cast
<
MenuItemData
*>
(
data
);
vlc_object_t
*
p_object
=
itemData
->
p_obj
;
if
(
p_object
==
NULL
)
return
;
const
char
*
var
=
itemData
->
psz_var
;
vlc_value_t
val
=
itemData
->
val
;
/* Preserve settings across vouts via the playlist object: */
if
(
!
strcmp
(
itemData
->
psz_
var
,
"fullscreen"
)
||
!
strcmp
(
itemData
->
psz_
var
,
"video-on-top"
)
)
var_Set
(
pl_Get
(
p_object
),
itemData
->
psz_var
,
itemData
->
val
);
if
(
!
strcmp
(
var
,
"fullscreen"
)
||
!
strcmp
(
var
,
"video-on-top"
)
)
var_Set
(
pl_Get
(
p_object
),
var
,
val
);
var_Set
(
p_object
,
itemData
->
psz_var
,
itemData
->
val
);
var_Set
(
p_object
,
var
,
val
);
}
void
VLCMenuBar
::
updateRecents
(
intf_thread_t
*
p_intf
)
...
...
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