initialize all attributes that might be used in startup methods (bugfix)
This commit is contained in:
parent
7e3bcefd19
commit
30503185e4
@ -52,12 +52,12 @@ __version__ = _getVersionString()
|
||||
|
||||
|
||||
class MainWindow(QMainWindow):
|
||||
|
||||
closing = Signal()
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super(MainWindow, self).__init__(parent)
|
||||
|
||||
self.dirty = False
|
||||
settings = QSettings()
|
||||
if settings.value("user/FullName", None) is None:
|
||||
fulluser = QInputDialog.getText(self, "Enter Name:", "Full name")
|
||||
@ -65,6 +65,7 @@ class MainWindow(QMainWindow):
|
||||
settings.setValue("user/Login", os.getlogin())
|
||||
settings.sync()
|
||||
self.recentEvents = settings.value("data/recentEvents", [])
|
||||
self.fnames = None
|
||||
self.dataStructure = DATASTRUCTURE[
|
||||
settings.value("data/Structure", None)]()
|
||||
self.setWindowTitle("PyLoT - do seismic processing the python way")
|
||||
|
Loading…
Reference in New Issue
Block a user