exit_Crash_fix
Release Plugin / release (push) Successful in 4s

This commit is contained in:
2026-04-20 13:28:00 +02:00
parent d762f2d94f
commit 88761eab22
4 changed files with 94 additions and 24 deletions
+14
View File
@@ -99,6 +99,20 @@ class BaseDockWidget(QDockWidget):
Wird aufgerufen, wenn das Dock geschlossen wird.
Setzt die zugehörige Toolbar-Action zurück.
"""
try:
tab_widget = self.widget()
if tab_widget and hasattr(tab_widget, "count") and hasattr(tab_widget, "widget"):
for index in range(tab_widget.count()):
tab = tab_widget.widget(index)
cleanup = getattr(tab, "cleanup", None)
if callable(cleanup):
try:
cleanup()
except Exception:
pass
except Exception:
pass
try:
if self.action:
self.action.setChecked(False)