stop using the commands handler

This commit is contained in:
Cosmin Popescu 2017-01-13 18:57:55 +01:00
parent 89e6ff6599
commit 80372eb3f2
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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)