Maelstrom: Don't eat file open events

https://github.com/libsdl-org/Maelstrom/commit/a2c66a891e2ac40197285dc2ddd700564bc20860

From a2c66a891e2ac40197285dc2ddd700564bc20860 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 14 Oct 2012 10:51:57 -0700
Subject: [PATCH] Don't eat file open events Make sure you close yourself on
 escape, not some other dialog.

---
 screenlib/UIDialog.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/screenlib/UIDialog.cpp b/screenlib/UIDialog.cpp
index 6e75edf0..5ffffeea 100644
--- a/screenlib/UIDialog.cpp
+++ b/screenlib/UIDialog.cpp
@@ -66,11 +66,11 @@ UIDialog::HandleEvent(const SDL_Event &event)
 		return true;
 	}
 
-	if (event.type != SDL_QUIT) {
+	if (event.type != SDL_QUIT && event.type != SDL_DROPFILE) {
 		/* Press escape to cancel out of dialogs */
 		if (event.type == SDL_KEYUP &&
 		    event.key.keysym.sym == SDLK_ESCAPE) {
-			GetUI()->HidePanel(GetUI()->GetCurrentPanel());
+			GetUI()->HidePanel(this);
 		}
 		return true;
 	}