From 194e800bc6c16d787fff48410a4ef71928efe8fb Mon Sep 17 00:00:00 2001 From: smbaker Date: Thu, 14 Jul 2011 16:37:11 -0700 Subject: [PATCH] fix segfault on sface exit in ubuntu --- sface/mainwindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sface/mainwindow.py b/sface/mainwindow.py index 436756a..b361b22 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -121,8 +121,10 @@ class MainWindow(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) - self.logWindow = LogWindow(self) - self.rspecWindow = RSpecWindow(self) + # These are top-level windows and should be initialized with parent set + # to our parent. Otherwise, getting a segfault on exit in Ubuntu. + self.logWindow = LogWindow(parent) + self.rspecWindow = RSpecWindow(parent) self.pix = QLabel(self) -- 2.43.0