[vlc-commits] [Git][videolan/vlc][3.0.x] qt: do not inherit non-existent setting in `DiscOpenPanel::updateButtons()`

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Oct 27 15:39:52 UTC 2026



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
ba5cba12 by Fatih Uzunoglu at 2026-10-27T16:23:47+01:00
qt: do not inherit non-existent setting in `DiscOpenPanel::updateButtons()`

This prevents assertion failure.

- - - - -


1 changed file:

- modules/gui/qt/components/open_panels.cpp


Changes:

=====================================
modules/gui/qt/components/open_panels.cpp
=====================================
@@ -492,17 +492,27 @@ void DiscOpenPanel::updateButtons()
     }
     else if ( ui.bdRadioButton->isChecked() )
     {
+        bool dvdsimpleEnable = true;
         if( m_discType != BRD )
         {
             setDrive( psz_dvddiscpath );
             m_discType = BRD;
-            ui.dvdsimple->setChecked( !var_InheritBool( p_intf, "bluray-menu" ) );
+            const auto bm = "bluray-menu";
+            if( var_Type( p_intf, bm ) )
+            {
+                ui.dvdsimple->setChecked( !var_InheritBool( p_intf, bm ) );
+            }
+            else
+            {
+                ui.dvdsimple->setChecked( true ); // No menus
+                dvdsimpleEnable = false;
+            }
         }
         ui.titleLabel->setText( qtr("Title") );
         ui.chapterLabel->hide();
         ui.chapterSpin->hide();
         ui.diskOptionBox_2->hide();
-        ui.dvdsimple->setEnabled( true );
+        ui.dvdsimple->setEnabled( dvdsimpleEnable );
     }
     else if ( ui.vcdRadioButton->isChecked() )
     {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ba5cba12b9a14913dd236a2e6a5ac563a0026bf6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ba5cba12b9a14913dd236a2e6a5ac563a0026bf6
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list