Commits

Steve Borho committed 33424a6

guess: check for model existance in poll thread (closes #1760)

Comments (0)

Files changed (1)

tortoisehg/hgtk/guess.py

         unkmodel = self.unktree.get_model()
         while q.qsize():
             wfile = q.get(0)
-            unkmodel.append( [wfile, hglib.toutf(wfile)] )
+            if unkmodel is not None:
+                unkmodel.append( [wfile, hglib.toutf(wfile)] )
         return thread.isAlive()
 
     def save_settings(self):