[vlc-devel] commit: Revert "Lua dialogs: remove b_hide parameter" ( Jean-Philippe André )
git version control
git at videolan.org
Thu Feb 4 03:11:37 CET 2010
vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Thu Feb 4 01:59:58 2010 +0100| [73d52311f647fec65cbfec8d8a74908d10a25049] | committer: Jean-Philippe André
Revert "Lua dialogs: remove b_hide parameter"
This reverts commit 6787595024f61d65d68a1fe467e6520c75756b20.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73d52311f647fec65cbfec8d8a74908d10a25049
---
include/vlc_extensions.h | 1 +
modules/gui/qt4/dialogs/extensions.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/vlc_extensions.h b/include/vlc_extensions.h
index a267199..7d94524 100644
--- a/include/vlc_extensions.h
+++ b/include/vlc_extensions.h
@@ -195,6 +195,7 @@ struct extension_dialog_t
DECL_ARRAY(extension_widget_t*) widgets; ///< Widgets owned by the dialog
+ bool b_hide; ///< Hide this dialog (!b_hide shows)
bool b_kill; ///< Kill this dialog
void *p_sys; ///< Dialog private pointer
diff --git a/modules/gui/qt4/dialogs/extensions.cpp b/modules/gui/qt4/dialogs/extensions.cpp
index c2afd8b..e1740d9 100644
--- a/modules/gui/qt4/dialogs/extensions.cpp
+++ b/modules/gui/qt4/dialogs/extensions.cpp
@@ -112,13 +112,14 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateExtDialog(
if( !p_dialog->b_kill && !dialog )
{
dialog = CreateExtDialog( p_dialog );
- dialog->setVisible( true );
+ dialog->setVisible( !p_dialog->b_hide );
}
else if( !p_dialog->b_kill && dialog )
{
dialog->has_lock = true;
dialog->UpdateWidgets();
dialog->has_lock = false;
+ dialog->setVisible( !p_dialog->b_hide );
}
else if( p_dialog->b_kill )
{
More information about the vlc-devel
mailing list