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

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


vlc/vlc-1.1 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed Jul  6 18:27:30 2011 +0200| [f7b9cb963d959c9b3d2919a9dab6cefa4b3e8c0c] | 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>
(cherry picked from commit 797a7fe2e200fbe8ae478f62e530e2a03226a5e2)

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

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

 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 65bb775..46633cc 100644
--- a/modules/gui/qt4/dialogs/extensions.cpp
+++ b/modules/gui/qt4/dialogs/extensions.cpp
@@ -519,6 +519,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