X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fmainwindow.py;h=a78bbfc4dc71b0b711b33c372759149c1a880c46;hp=436756afa5ce537835dd19d9f5573e871daf4448;hb=31f39d4d288e990328172ed778292ba801de8001;hpb=cc8ab984a1f9d51d61368b3602b5059bffbfa2a6 diff --git a/sface/mainwindow.py b/sface/mainwindow.py index 436756a..a78bbfc 100644 --- a/sface/mainwindow.py +++ b/sface/mainwindow.py @@ -110,7 +110,7 @@ class Status(QLabel): creation_time = os.stat(rspec_file).st_ctime last_update = time.ctime(creation_time) - self.set("Slice data last updated on %s" % last_update, timeout=None) + self.set("Slice data last refreshed on %s" % last_update, timeout=None) def reset(self): self.setText("") @@ -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)