aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 287c911..9adbc22 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1440,7 +1440,9 @@ namespace QuickMedia {
}
}
- while(related_media_window && related_media_window_visible && related_media_window->pollEvent(event)) {
+ while(related_media_window && related_media_window->pollEvent(event)) {
+ if(!related_media_window_visible)
+ continue;
if(event.type == sf::Event::KeyPressed) {
if(event.key.code == sf::Keyboard::Up) {
related_media_body->select_previous_item();