diff options
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index ac236b4..648f231 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -54,6 +54,7 @@ #include <sys/stat.h> #include <cmath> #include <random> +#include <algorithm> #include <mglpp/graphics/Rectangle.hpp> #include <mglpp/graphics/Sprite.hpp> @@ -3738,6 +3739,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 +3908,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()) { |