From d8d26e46c474b7abcf89943a3807ed3aaf32e12a Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 27 Nov 2022 22:04:20 +0200 Subject: [PATCH] okular: correct breaks scope in document source file Signed-off-by: Ivailo Monev --- okular/core/document.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/okular/core/document.cpp b/okular/core/document.cpp index 009daffa..e4584653 100644 --- a/okular/core/document.cpp +++ b/okular/core/document.cpp @@ -3569,8 +3569,8 @@ void Document::processAction( const Action * action ) d->m_nextDocumentViewport = DocumentViewport(); d->m_nextDocumentDestination = QString(); } - - } break; + break; + } case Action::Execute: { const ExecuteAction * exe = static_cast< const ExecuteAction * >( action ); @@ -3618,8 +3618,11 @@ void Document::processAction( const Action * action ) KRun::run( *ptr, lst, 0 ); } else + { KMessageBox::information( d->m_widget, i18n( "No application found for opening file of mimetype %1.", mime->name() ) ); - } break; + } + break; + } case Action::DocAction: { const DocumentAction * docaction = static_cast< const DocumentAction * >( action ); @@ -3664,7 +3667,8 @@ void Document::processAction( const Action * action ) emit close(); break; } - } break; + break; + } case Action::Browse: { const BrowseAction * browse = static_cast< const BrowseAction * >( action ); @@ -3700,16 +3704,19 @@ void Document::processAction( const Action * action ) // Albert: this is not a leak! new KRun( realUrl, d->m_widget ); } - } break; + break; + } case Action::Sound: { const SoundAction * linksound = static_cast< const SoundAction * >( action ); AudioPlayer::instance()->playSound( linksound->sound(), linksound ); - } break; + break; + } - case Action::Movie: + case Action::Movie: { emit processMovieAction( static_cast< const MovieAction * >( action ) ); break; + } } } -- 2.11.0