Commits

Steve Borho committed 266cb45

repofilter: ignore errors in saveSettings (fixes #1235)

  • Participants
  • Parent commits 686f460
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repofilter.py

             self.hide()
 
     def saveSettings(self, s):
-        repoid = str(self._repo[0])
+        try:
+            repoid = str(self._repo[0])
+        except EnvironmentError:
+            return
         s.setValue('revset/' + repoid + '/geom', self.entrydlg.saveGeometry())
         s.setValue('revset/' + repoid + '/queries', self.revsethist)
         s.setValue('revset/' + repoid + '/filter', self.filtercb.isChecked())