Only start timer to process args if init was successful.

This fixes an exception when there is a config error (now displays normal error
box again).
This commit is contained in:
Florian Bruhin 2014-10-07 07:34:03 +02:00
parent d2b3f89d78
commit 068cc89458

View File

@ -88,7 +88,6 @@ class Application(QApplication):
self._args = args
objreg.register('args', args)
QTimer.singleShot(0, self._open_pages)
objreg.register('app', self)
@ -108,6 +107,7 @@ class Application(QApplication):
self.setApplicationVersion(qutebrowser.__version__)
utils.actute_warning()
self._init_modules()
QTimer.singleShot(0, self._open_pages)
log.init.debug("Initializing eventfilter...")
self._event_filter = modeman.EventFilter(self)