From 96de0ceb4e9328613d4122d30c02bc335ebf25a3 Mon Sep 17 00:00:00 2001 From: prculley Date: Thu, 7 May 2020 09:39:09 -0500 Subject: [PATCH] Fix Verify tool bug caused by bad change in GObject introspection Fixes: #11708 --- gramps/plugins/tool/verify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/tool/verify.py b/gramps/plugins/tool/verify.py index f3e84d988..eac82074e 100644 --- a/gramps/plugins/tool/verify.py +++ b/gramps/plugins/tool/verify.py @@ -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()