From f069183ac88f59d61a322a1904bf4002c22db92c Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Sat, 14 Oct 2017 11:12:56 +0200 Subject: [PATCH] Fixes a small bug in when closing fullScreenEditor --- manuskript/ui/editors/fullScreenEditor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manuskript/ui/editors/fullScreenEditor.py b/manuskript/ui/editors/fullScreenEditor.py index a02a70d9..96c39e62 100644 --- a/manuskript/ui/editors/fullScreenEditor.py +++ b/manuskript/ui/editors/fullScreenEditor.py @@ -258,7 +258,8 @@ class fullScreenEditor(QWidget): return QWidget.eventFilter(self, obj, event) def dataChanged(self, topLeft, bottomRight): - if not self._index: + # This is called sometimes after self has been destroyed. Don't know why. + if not self or not self._index: return if topLeft.row() <= self._index.row() <= bottomRight.row(): self.updateStatusBar()