[vlc-commits] [Git][videolan/vlc][master] qt: do not inherit non-existent setting in `DiscOpenPanel::updateButtons()`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Oct 26 15:57:00 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
038b736d by Fatih Uzunoglu at 2026-10-26T15:16:39+00:00
qt: do not inherit non-existent setting in `DiscOpenPanel::updateButtons()`
This prevents assertion failure.
- - - - -
1 changed file:
- modules/gui/qt/dialogs/open/open_panels.cpp
Changes:
=====================================
modules/gui/qt/dialogs/open/open_panels.cpp
=====================================
@@ -534,17 +534,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/038b736dadd8bdec0cc0a81fde2e44a9f931d4e3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/038b736dadd8bdec0cc0a81fde2e44a9f931d4e3
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