View Single Post
Old 02-01-2024, 08:23 AM   #1260
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by nqk View Post
Thank you for your response, the following error shows up

...
@capink: this might have nothing to do with the problem, but this exception can happen if a search reduces the number of books that would be shown in the book list. The "index" is the row number of the book list. The exception is thrown if that row number no longer exists. For example, imagine 30 books being displayed, with book 20 selected. A search reduces the number displayed to 15, moving the selected book to row 10. Even though the current book is still there, the fact that there isn't a book 20 causes the exception to be thrown. If it wasn't thrown then you would most likely have the wrong book.

Also note that if the GUI hasn't been told about a db.search() then it will think that it has current data, which is likely wrong.
chaley is offline   Reply With Quote