From: Steve Lhomme Date: Mon, 16 Dec 2024 14:48:41 +0000 (+0100) Subject: qt: fix bitfield added values set in QVariant X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=597e483083d584931b3a4c4c50dbcbae479ce98a;p=vlc.git qt: fix bitfield added values set in QVariant It's checked with actions[i]->data().toInt() anyway. The code was removed in 4.0 with e1c82853965d44b4390af78d9184bd0b60ccc3fb but was never fixed. Gbp-Pq: Name 0117-qt-fix-bitfield-added-values-set-in-QVariant.patch --- diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp index 460653c9..70a475fb 100644 --- a/modules/gui/qt/menus.cpp +++ b/modules/gui/qt/menus.cpp @@ -846,20 +846,20 @@ void VLCMenuBar::PopupMenuPlaylistEntries( QMenu *menu, action = addMIMStaticEntry( p_intf, menu, qtr( "Pre&vious" ), ":/toolbar/previous_b.svg", SLOT( prev() ), true ); action->setEnabled( !bPlaylistEmpty ); - action->setData( ACTION_NO_CLEANUP + ACTION_DELETE_ON_REBUILD ); + action->setData( static_cast(ACTION_NO_CLEANUP | ACTION_DELETE_ON_REBUILD) ); CONNECT( THEMIM, playlistNotEmpty(bool), action, setEnabled(bool) ); action = addMIMStaticEntry( p_intf, menu, qtr( "Ne&xt" ), ":/toolbar/next_b.svg", SLOT( next() ), true ); action->setEnabled( !bPlaylistEmpty ); - action->setData( ACTION_NO_CLEANUP + ACTION_DELETE_ON_REBUILD ); + action->setData( static_cast(ACTION_NO_CLEANUP | ACTION_DELETE_ON_REBUILD) ); CONNECT( THEMIM, playlistNotEmpty(bool), action, setEnabled(bool) ); action = menu->addAction( qtr( "Record" ), THEAM, SLOT( record() ) ); action->setIcon( QIcon( ":/toolbar/record.svg" ) ); if( !p_input ) action->setEnabled( false ); - action->setData( ACTION_NO_CLEANUP + ACTION_DELETE_ON_REBUILD ); + action->setData( static_cast(ACTION_NO_CLEANUP | ACTION_DELETE_ON_REBUILD) ); menu->addSeparator(); }