diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 53c418224..40ac354d1 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -24362,7 +24362,7 @@ static int do_quick_eraser(void) { done = 0; do { - while (SDL_PollEvent(&event)) + while (SDL_PollEvent(&event) && !done) { if (event.type == SDL_QUIT) {