stop using the commands handler
This commit is contained in:
parent
89e6ff6599
commit
80372eb3f2
@ -726,7 +726,7 @@ class Quitter:
|
||||
# Now we can hopefully quit without segfaults
|
||||
log.destroy.debug("Deferring QApplication::exit...")
|
||||
objreg.get('signal-handler').deactivate()
|
||||
objreg.get('session-manager').session_delete('_autosave', force=True)
|
||||
objreg.get('session-manager').delete('_autosave')
|
||||
# We use a singleshot timer to exit here to minimize the likelihood of
|
||||
# segfaults.
|
||||
QTimer.singleShot(0, functools.partial(qApp.exit, status))
|
||||
|
@ -686,7 +686,7 @@ class AbstractTab(QWidget):
|
||||
@pyqtSlot(bool)
|
||||
def _on_load_finished(self, ok):
|
||||
sess_manager = objreg.get('session-manager')
|
||||
sess_manager.session_save('_autosave', quiet=True, force=True)
|
||||
sess_manager.save('_autosave')
|
||||
if ok and not self._has_ssl_errors:
|
||||
if self.url().scheme() == 'https':
|
||||
self._set_load_status(usertypes.LoadStatus.success_https)
|
||||
|
Loading…
Reference in New Issue
Block a user