Steve Borho  committed d0c5d4e

filelistview: repair resizeEvent following 3e6a45cfc595

bool(self.model()) is False if empty. We only care that the model
exists. This code could probably be further simplified, however,
since the file list model only has a single column now. This logic
was necessary in hgview to manage the diffstat column size.

  • Participants
  • Parent commits 1e7d26d

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

     def resizeEvent(self, event):
-        if self.model():
+        if self.model() is not None:
             vp_width = self.viewport().width()
             col_widths = [self.columnWidth(i) \
                         for i in range(1, self.model().columnCount())]