From 925e413683e12e17f44646610ddf22f6fb5d2091 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Fri, 15 Jul 2016 12:16:29 +0200 Subject: [PATCH] 9362: Attempting to select an "Available item" for the Book Report gives an error --- gramps/gui/plug/report/_bookdialog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gui/plug/report/_bookdialog.py b/gramps/gui/plug/report/_bookdialog.py index 361e04723..0820472c0 100644 --- a/gramps/gui/plug/report/_bookdialog.py +++ b/gramps/gui/plug/report/_bookdialog.py @@ -103,6 +103,8 @@ def _initialize_options(options, dbstate, uistate): if not hasattr(options, "menu"): return dbase = dbstate.get_database() + if dbase.get_total() == 0: + return menu = options.menu for name in menu.get_all_option_names():