Fix crash when showing context menu in DVDs

Signed-off-by: mio <stigma@disroot.org>
pull/19/head
mio 3 months ago
parent 36a0b3510b
commit b62e6bc2b9

@ -258,7 +258,7 @@ MainWindow::setupActions()
new TDEAction( i18n("Reset Video Scale"), "viewmag1", Key_Equal, videoWindow(), TQ_SLOT(resetZoom()), ac, "reset_zoom" ); new TDEAction( i18n("Reset Video Scale"), "viewmag1", Key_Equal, videoWindow(), TQ_SLOT(resetZoom()), ac, "reset_zoom" );
new TDEAction( i18n("Media Information"), "messagebox_info", Key_I, this, TQ_SLOT(streamInformation()), ac, "information" ); new TDEAction( i18n("Media Information"), "messagebox_info", Key_I, this, TQ_SLOT(streamInformation()), ac, "information" );
new TDEAction( i18n("Menu Toggle"), "media-optical-dvd-unmounted", Key_R, engine(), TQ_SLOT(toggleDVDMenu()), ac, "media-optical-dvd-unmounted" ); new TDEAction( i18n("Menu Toggle"), "media-optical-dvd-unmounted", Key_R, engine(), TQ_SLOT(toggleDVDMenu()), ac, "toggle_dvd_menu" );
new TDEAction( i18n("&Capture Frame"), "frame_image", Key_C, this, TQ_SLOT(captureFrame()), ac, "capture_frame" ); new TDEAction( i18n("&Capture Frame"), "frame_image", Key_C, this, TQ_SLOT(captureFrame()), ac, "capture_frame" );
new TDEAction( i18n("Video Settings..."), "configure", Key_V, this, TQ_SLOT(configure()), ac, "video_settings" ); new TDEAction( i18n("Video Settings..."), "configure", Key_V, this, TQ_SLOT(configure()), ac, "video_settings" );

@ -139,9 +139,12 @@ VideoWindow::contextMenuEvent( TQContextMenuEvent *e )
popup.insertSeparator(); popup.insertSeparator();
if( TheStream::url().protocol() == "dvd" ) if (TheStream::url().protocol() == "dvd")
action( "toggle_dvd_menu" )->plug( &popup ), {
action("toggle_dvd_menu")->plug(&popup);
popup.insertSeparator(); popup.insertSeparator();
}
if( !((TDEToggleAction*)actionCollection()->action( "fullscreen" ))->isChecked() ) if( !((TDEToggleAction*)actionCollection()->action( "fullscreen" ))->isChecked() )
action( "reset_zoom" )->plug( &popup ); action( "reset_zoom" )->plug( &popup );
action( "capture_frame" )->plug( &popup ); action( "capture_frame" )->plug( &popup );

Loading…
Cancel
Save