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):
|
class MainWindow(QMainWindow):
|
||||||
|
|
||||||
closing = Signal()
|
closing = Signal()
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super(MainWindow, self).__init__(parent)
|
super(MainWindow, self).__init__(parent)
|
||||||
|
|
||||||
|
self.dirty = False
|
||||||
settings = QSettings()
|
settings = QSettings()
|
||||||
if settings.value("user/FullName", None) is None:
|
if settings.value("user/FullName", None) is None:
|
||||||
fulluser = QInputDialog.getText(self, "Enter Name:", "Full name")
|
fulluser = QInputDialog.getText(self, "Enter Name:", "Full name")
|
||||||
@ -65,6 +65,7 @@ class MainWindow(QMainWindow):
|
|||||||
settings.setValue("user/Login", os.getlogin())
|
settings.setValue("user/Login", os.getlogin())
|
||||||
settings.sync()
|
settings.sync()
|
||||||
self.recentEvents = settings.value("data/recentEvents", [])
|
self.recentEvents = settings.value("data/recentEvents", [])
|
||||||
|
self.fnames = None
|
||||||
self.dataStructure = DATASTRUCTURE[
|
self.dataStructure = DATASTRUCTURE[
|
||||||
settings.value("data/Structure", None)]()
|
settings.value("data/Structure", None)]()
|
||||||
self.setWindowTitle("PyLoT - do seismic processing the python way")
|
self.setWindowTitle("PyLoT - do seismic processing the python way")
|
||||||
|
Loading…
Reference in New Issue
Block a user