From b62e6bc2b9329b315893021de30dd5846b48fd81 Mon Sep 17 00:00:00 2001 From: mio Date: Fri, 30 Aug 2024 18:25:19 +1000 Subject: Fix crash when showing context menu in DVDs Signed-off-by: mio --- src/app/videoWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/app/videoWindow.cpp') diff --git a/src/app/videoWindow.cpp b/src/app/videoWindow.cpp index 3a57ee8..b005206 100644 --- a/src/app/videoWindow.cpp +++ b/src/app/videoWindow.cpp @@ -139,9 +139,12 @@ VideoWindow::contextMenuEvent( TQContextMenuEvent *e ) popup.insertSeparator(); - if( TheStream::url().protocol() == "dvd" ) - action( "toggle_dvd_menu" )->plug( &popup ), + if (TheStream::url().protocol() == "dvd") + { + action("toggle_dvd_menu")->plug(&popup); popup.insertSeparator(); + } + if( !((TDEToggleAction*)actionCollection()->action( "fullscreen" ))->isChecked() ) action( "reset_zoom" )->plug( &popup ); action( "capture_frame" )->plug( &popup ); -- cgit v1.2.1