[vlc-commits] lua: Don't update a widget that was just created.

Hugo Beauzée-Luyssen git at videolan.org
Thu Jul 7 12:50:06 CEST 2011


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed Jul  6 18:27:30 2011 +0200| [797a7fe2e200fbe8ae478f62e530e2a03226a5e2] | committer: Jean-Baptiste Kempf

lua: Don't update a widget that was just created.

Ref: #5000
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=797a7fe2e200fbe8ae478f62e530e2a03226a5e2
---

 modules/gui/qt4/dialogs/extensions.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/extensions.cpp b/modules/gui/qt4/dialogs/extensions.cpp
index 006e858..a0640b6 100644
--- a/modules/gui/qt4/dialogs/extensions.cpp
+++ b/modules/gui/qt4/dialogs/extensions.cpp
@@ -528,6 +528,8 @@ void ExtensionDialog::UpdateWidgets()
                 widget->resize( p_widget->i_width, p_widget->i_height );
             p_widget->p_sys_intf = widget;
             this->resize( sizeHint() );
+            /* If an update was required, cancel it as we just created the widget */
+            p_widget->b_update = false;
         }
         else if( p_widget->p_sys_intf && !p_widget->b_kill
                  && p_widget->b_update )



More information about the vlc-commits mailing list