From 6794f5146125ec050300878563204bfd2cd261c6 Mon Sep 17 00:00:00 2001 From: Gilberto Chavez-Martinez <55265475+gilchavezm@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:24:07 -0500 Subject: [PATCH] Update EmuApplication.cpp: handle Quit binding Added handling of binding for Quit. --- qt/src/EmuApplication.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt/src/EmuApplication.cpp b/qt/src/EmuApplication.cpp index 6787a78c..75927922 100644 --- a/qt/src/EmuApplication.cpp +++ b/qt/src/EmuApplication.cpp @@ -386,6 +386,10 @@ void EmuApplication::handleBinding(std::string name, bool pressed) { window->openFile(); } + else if (name == "Quit" && pressed) + { + window->close(); + } } bool EmuApplication::isBound(EmuBinding b) @@ -741,4 +745,4 @@ void EmuThread::run() void EmuThread::setMainLoop(std::function loop) { main_loop = loop; -} \ No newline at end of file +}