Move initializing of version/geometry saveables.

This commit is contained in:
Florian Bruhin 2015-02-01 01:22:24 +01:00
parent 43c5dc3bf6
commit 3b667325ca

View File

@ -165,6 +165,8 @@ class Application(QApplication):
log.init.debug("Initializing save manager...")
save_manager = savemanager.SaveManager(self)
objreg.register('save-manager', save_manager)
save_manager.add_saveable('window-geometry', self._save_geometry)
save_manager.add_saveable('version', self._save_version)
log.init.debug("Initializing readline-bridge...")
readline_bridge = readline.ReadlineBridge()
objreg.register('readline-bridge', readline_bridge)
@ -172,8 +174,6 @@ class Application(QApplication):
standarddir.init()
log.init.debug("Initializing config...")
config.init(self._args)
save_manager.add_saveable('window-geometry', self._save_geometry)
save_manager.add_saveable('version', self._save_version)
log.init.debug("Initializing crashlog...")
self._handle_segfault()
log.init.debug("Initializing js-bridge...")