aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index ac236b4..151c136 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -3738,6 +3738,7 @@ namespace QuickMedia {
} else {
current_page = previous_page;
go_to_previous_page = true;
+ break;
}
} else if(event.type == mgl::Event::KeyPressed && event.key.code == mgl::Keyboard::Q) {
current_page = previous_page;
@@ -3906,7 +3907,7 @@ namespace QuickMedia {
current_page = previous_page;
go_to_previous_page = true;
break;
- } else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0 && (!is_matrix || is_youtube)) {
+ } else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0 && (!is_matrix || is_youtube) && !go_to_previous_page) {
std::string new_video_url;
if(!video_page->should_autoplay()) {