[vlc-commits] qt: prevent infinite recursion

Hannes Domani git at videolan.org
Fri Feb 26 17:33:30 CET 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Tue Feb 23 20:13:54 2016 +0100| [e93087fa20d7a697c3f93832b6b2085c6bb7dbc3] | committer: Jean-Baptiste Kempf

qt: prevent infinite recursion

Close #15630

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

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

 modules/gui/qt4/components/controller.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index 39aff59..4630140 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -403,6 +403,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
         }
         break;
     case ADVANCED_CONTROLLER:
+        if( qobject_cast<AdvControlsWidget *>(this) == NULL )
         {
             advControls = new AdvControlsWidget( p_intf, this );
             widget = advControls;



More information about the vlc-commits mailing list