9362: Attempting to select an "Available item" for the Book Report gives an error
This commit is contained in:
parent
f73c41f9c0
commit
398f7f9ea7
@ -366,6 +366,9 @@ class BookSelector(ManagedWindow):
|
|||||||
|
|
||||||
def __init__(self, dbstate, uistate):
|
def __init__(self, dbstate, uistate):
|
||||||
self.db = dbstate.db
|
self.db = dbstate.db
|
||||||
|
if self.db.get_total() == 0:
|
||||||
|
WarningDialog(_("Your database is empty."), parent=uistate.window)
|
||||||
|
return
|
||||||
self.dbstate = dbstate
|
self.dbstate = dbstate
|
||||||
self.uistate = uistate
|
self.uistate = uistate
|
||||||
self.title = _('Manage Books')
|
self.title = _('Manage Books')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user