diff options
author | mio <[email protected]> | 2024-08-30 18:25:19 +1000 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-08-31 18:43:19 +0900 |
commit | 5394e874c37b53db0ca75c119d2a8e4612750f19 (patch) | |
tree | aad38e81bbc03924debe8626dfad26c48cbca3bc /src/app/videoWindow.cpp | |
parent | e2003a00c47f148c3ffbca58e5d8c2c4d687bb16 (diff) | |
download | codeine-5394e874c37b53db0ca75c119d2a8e4612750f19.tar.gz codeine-5394e874c37b53db0ca75c119d2a8e4612750f19.zip |
Fix crash when showing context menu in DVDs
Signed-off-by: mio <[email protected]>
(cherry picked from commit b62e6bc2b9329b315893021de30dd5846b48fd81)
Diffstat (limited to 'src/app/videoWindow.cpp')
-rw-r--r-- | src/app/videoWindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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 ); |