[vlc-commits] qt4: fix "Take snapshot" menu
Rafaël Carré
git at videolan.org
Fri Jan 25 03:35:05 CET 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jan 25 03:28:11 2013 +0100| [762a3d7fdefa909aecbb3e27a9fbce1b56252476] | committer: Rafaël Carré
qt4: fix "Take snapshot" menu
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=762a3d7fdefa909aecbb3e27a9fbce1b56252476
---
modules/gui/qt4/menus.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 47c159b..167af3d 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1520,7 +1520,10 @@ void VLCMenuBar::DoAction( QObject *data )
|| !strcmp( var, "video-on-top" ) )
var_Set( pl_Get( p_object ), var, val );
- var_Set( p_object, var, val );
+ if ((var_Type( p_object, var) & VLC_VAR_CLASS) == VLC_VAR_VOID)
+ var_TriggerCallback( p_object, var );
+ else
+ var_Set( p_object, var, val );
}
void VLCMenuBar::updateRecents( intf_thread_t *p_intf )
More information about the vlc-commits
mailing list