mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix calibre startup crash caused by Quickview when the applied virtual library is empty (has no books).
This commit is contained in:
parent
25d3168df5
commit
e2f905a8af
@ -356,13 +356,16 @@ class Quickview(QDialog, Ui_Quickview):
|
|||||||
if self.lock_qv.isChecked():
|
if self.lock_qv.isChecked():
|
||||||
return
|
return
|
||||||
|
|
||||||
bv_row = idx.row()
|
try:
|
||||||
self.current_column = idx.column()
|
bv_row = idx.row()
|
||||||
key = self.view.column_map[self.current_column]
|
self.current_column = idx.column()
|
||||||
book_id = self.view.model().id(bv_row)
|
key = self.view.column_map[self.current_column]
|
||||||
if self.current_book_id == book_id and self.current_key == key:
|
book_id = self.view.model().id(bv_row)
|
||||||
return
|
if self.current_book_id == book_id and self.current_key == key:
|
||||||
self._refresh(book_id, key)
|
return
|
||||||
|
self._refresh(book_id, key)
|
||||||
|
except:
|
||||||
|
self.indicate_no_items()
|
||||||
|
|
||||||
def _refresh(self, book_id, key):
|
def _refresh(self, book_id, key):
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user