Initialize web history earlier.

This is needed when displaying the history in the segfault report dialog.
This commit is contained in:
Florian Bruhin 2015-02-01 23:11:30 +01:00
parent 503fc9f56b
commit d9ae2183e8

View File

@ -175,6 +175,8 @@ class Application(QApplication):
log.init.debug("Initializing config...")
config.init(self._args)
save_manager.init_autosave()
log.init.debug("Initializing web history...")
history.init()
log.init.debug("Initializing crashlog...")
self._handle_segfault()
log.init.debug("Initializing js-bridge...")
@ -197,8 +199,6 @@ class Application(QApplication):
log.init.debug("Initializing cache...")
diskcache = cache.DiskCache(self)
objreg.register('cache', diskcache)
log.init.debug("Initializing web history...")
history.init()
log.init.debug("Initializing main window...")
win_id = mainwindow.MainWindow.spawn(
False if self._args.nowindow else True)