SDL: Update SDL_portaldialog.c

From d4ce9183b8914f63c99ae1f5c06e192da989747b Mon Sep 17 00:00:00 2001
From: Cyao <[EMAIL REDACTED]>
Date: Sun, 12 May 2024 14:38:33 +0200
Subject: [PATCH] Update SDL_portaldialog.c

Do not throw error when quitting with escape or closing the window
---
 src/dialog/unix/SDL_portaldialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dialog/unix/SDL_portaldialog.c b/src/dialog/unix/SDL_portaldialog.c
index e5e380c6abc4d..5586cfc71ef5f 100644
--- a/src/dialog/unix/SDL_portaldialog.c
+++ b/src/dialog/unix/SDL_portaldialog.c
@@ -170,7 +170,7 @@ static DBusHandlerResult DBus_MessageFilter(DBusConnection *conn, DBusMessage *m
             goto not_our_signal;
         dbus->message_iter_get_basic(&signal_iter, &result);
 
-        if (result == 1) {
+        if (result == 1 || result == 2) {
             /* cancelled */
             const char *result_data[] = { NULL };
             signal_data->callback(signal_data->userdata, result_data, -1); /* TODO: Set this to the last selected filter */