9362: Attempting to select an "Available item" for the Book Report gives an error

This commit is contained in:
SNoiraud 2016-04-09 11:26:36 +02:00
parent f73c41f9c0
commit 398f7f9ea7

View File

@ -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')