Fix Verify tool bug caused by bad change in GObject introspection

Fixes: #11708
This commit is contained in:
prculley 2020-05-07 09:39:09 -05:00
parent 51f2052cfe
commit 96de0ceb4e

View File

@ -542,7 +542,10 @@ class VerifyResults(ManagedWindow):
GObject.TYPE_BOOLEAN)
self.filt_model = self.real_model.filter_new()
self.filt_model.set_visible_column(VerifyResults.TRUE_COL)
self.sort_model = self.filt_model.sort_new_with_model()
if hasattr(self.filt_model, "sort_new_with_model"):
self.sort_model = self.filt_model.sort_new_with_model()
else:
self.sort_model = Gtk.TreeModelSort.new_with_model(self.filt_model)
self.warn_tree.set_model(self.sort_model)
self.renderer = Gtk.CellRendererText()