Update SDL_portaldialog.c

Do not throw error when quitting with escape or closing the window
This commit is contained in:
Cyao authored and Sam Lantinga committed 2024-05-12 09:41:13 -07:00
1 parent a4371d28ac
commit d4ce9183b8
1 file changed
+1 -1
+1 -1
View File
@@ -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 */