From 3a6b4807dbe1a0fb6bb28f918d25c1d01bbfac05 Mon Sep 17 00:00:00 2001 From: joshua Date: Mon, 9 Jun 2025 21:35:00 +0200 Subject: [PATCH] Fix crash. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix crash when : 1°-Open a project with terminal strip and open the terminal strip editor 2°-Close the terminal strip editor and the project (keep qelectrotech open). 3°-redo step 1 and click on an item in the tree at left of the window, qet crash. Qet don't crash anymore but the terminal strip editor continue to work with the terminal strip of the first opening (exactly the pointer of the terminal strip) who don't exist anymore. Need more work. --- sources/TerminalStrip/ui/terminalstriptreedockwidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/TerminalStrip/ui/terminalstriptreedockwidget.h b/sources/TerminalStrip/ui/terminalstriptreedockwidget.h index 31ed57b32..6fdbb1ee1 100644 --- a/sources/TerminalStrip/ui/terminalstriptreedockwidget.h +++ b/sources/TerminalStrip/ui/terminalstriptreedockwidget.h @@ -74,7 +74,7 @@ class TerminalStripTreeDockWidget : public QDockWidget QPointer m_project; QPointer m_current_strip; - QHash m_item_strip_H; + QHash> m_item_strip_H; QHash> m_uuid_terminal_H; QHash> m_uuid_strip_H; QVector m_strip_changed_connection;