From 398f7f9ea7b543ac88ce3916036ee647e46f8475 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sat, 9 Apr 2016 11:26:36 +0200 Subject: [PATCH] 9362: Attempting to select an "Available item" for the Book Report gives an error --- gramps/gui/plug/report/_bookdialog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gui/plug/report/_bookdialog.py b/gramps/gui/plug/report/_bookdialog.py index 8f3218960..7c1200440 100644 --- a/gramps/gui/plug/report/_bookdialog.py +++ b/gramps/gui/plug/report/_bookdialog.py @@ -366,6 +366,9 @@ class BookSelector(ManagedWindow): def __init__(self, dbstate, uistate): self.db = dbstate.db + if self.db.get_total() == 0: + WarningDialog(_("Your database is empty."), parent=uistate.window) + return self.dbstate = dbstate self.uistate = uistate self.title = _('Manage Books')