git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cc8ab98
)
fix segfault on sface exit in ubuntu
author
smbaker
<smbaker@fc8clean.lan>
Thu, 14 Jul 2011 23:37:11 +0000
(16:37 -0700)
committer
smbaker
<smbaker@fc8clean.lan>
Thu, 14 Jul 2011 23:37:11 +0000
(16:37 -0700)
sface/mainwindow.py
patch
|
blob
|
history
diff --git
a/sface/mainwindow.py
b/sface/mainwindow.py
index
436756a
..
b361b22
100644
(file)
--- 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)