]> git.sesse.net Git - vlc/commitdiff
Qt4: make sure the running VLC has a module implementing the protocol
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 25 Nov 2009 20:37:29 +0000 (22:37 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 25 Nov 2009 20:37:29 +0000 (22:37 +0200)
This avoids "*-caching variable does not exist" errors

modules/gui/qt4/components/open_panels.cpp

index 9d11c8e3043d3d46e42a88aa2dc776a4f3486805..e380f01cca6322c23085dc75ca4daedeb8cb5cb5 100644 (file)
@@ -560,7 +560,7 @@ void NetOpenPanel::updateMRL()
     const struct caching_map *r = (const struct caching_map *)
         bsearch( qtu(proto), schemes, sizeof(schemes) / sizeof(schemes[0]),
                  sizeof(schemes[0]), strcmp_void );
-    if( r != NULL )
+    if( r != NULL && module_exists( r->caching ) )
         emit methodChanged( qfu( r->caching ) + qfu( "-caching" ) );
 
     QStringList qsl;