diff --git a/tabtabtab.py b/tabtabtab.py index 9786941..08d6ea2 100644 --- a/tabtabtab.py +++ b/tabtabtab.py @@ -516,7 +516,11 @@ def on_create(menupath): t.show() t.raise_() - _tabtabtab_instance = t + # Keep the TabTabTabWidget alive, but don't keep an extra + # reference to it, otherwise Nuke segfaults on exit. Hacky. + # https://github.com/dbr/tabtabtab-nuke/issues/4 + import weakref + _tabtabtab_instance = weakref.proxy(t) if __name__ == '__main__':