Anpassung an Qt6, Fehler beim Beenden behoben
This commit is contained in:
16
main.py
16
main.py
@@ -41,14 +41,26 @@ class Verfahrensgebiet:
|
||||
"""
|
||||
Wird aufgerufen, wenn das Dockwidget geschlossen wird. Setzt den Aktivitätsstatus zurück.
|
||||
"""
|
||||
self.dockwidget.closingPlugin.disconnect(self.onClosePlugin)
|
||||
try:
|
||||
self.dockwidget.closingPlugin.disconnect(self.onClosePlugin)
|
||||
except Exception:
|
||||
pass
|
||||
self.pluginIsActive = False
|
||||
|
||||
def unload(self):
|
||||
"""
|
||||
Wird beim Deaktivieren des Plugins aufgerufen. Entfernt Menü- und Toolbar-Eintrag.
|
||||
"""
|
||||
self.ui.remove_action(self.action_text)
|
||||
if hasattr(self, "ui"):
|
||||
self.ui.remove_action(self.action_text)
|
||||
|
||||
if self.dockwidget:
|
||||
try:
|
||||
self.iface.removeDockWidget(self.dockwidget)
|
||||
except Exception:
|
||||
pass
|
||||
self.dockwidget.deleteLater()
|
||||
self.dockwidget = None
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user