From 7c00f418caf8f1e9fcb235563127a9c8cea22bb4 Mon Sep 17 00:00:00 2001
From: Eddy Pedroni <epedroni@pm.me>
Date: Sat, 9 Nov 2024 23:29:08 +0100
Subject: Minor GUI improvement

---
 gui-project/src/solo_tool_gui.py | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'gui-project')

diff --git a/gui-project/src/solo_tool_gui.py b/gui-project/src/solo_tool_gui.py
index 0488f84..cd73c9a 100644
--- a/gui-project/src/solo_tool_gui.py
+++ b/gui-project/src/solo_tool_gui.py
@@ -231,6 +231,10 @@ class MainWindow(QMainWindow, Ui_MainWindow):
         if event.key() == Qt.Key_Super_L:
             self.soloTool.jumpToA()
 
+    def closeEvent(self, event):
+        self.midiController.disconnect()
+        event.accept()
+
 def main():
     app = QApplication([])
     app.setApplicationName("Solo Tool")
-- 
cgit v1.2.3