Commits

Yuya Nishihara committed cc1f679

workbench: don't flicker tabs while restoring last session

Also changed to ignore missing repositories, which may happen in ordinary use.

  • Participants
  • Parent commits 38b20a0

Comments (0)

Files changed (1)

File tortoisehg/hgqt/workbench.py

                           _('Reopening repository %s') % upath, '',
                           len(openrepos))
             QCoreApplication.processEvents()
-            self._openRepo(hglib.fromunicode(upath), False)
+            try:
+                repo = thgrepo.repository(path=hglib.fromunicode(upath))
+                self.addRepoTab(repo, bundle=None)
+            except RepoError:
+                pass  # just ignore missing repository
             QCoreApplication.processEvents()
         self.progress(_('Reopening tabs'), None, '', '', None)