mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GUI convert: Don't try to convert when no books are selected.
This commit is contained in:
parent
58f49ebeb5
commit
44b92f3819
@ -1047,7 +1047,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
d = error_dialog(self, _('Cannot convert'),
|
d = error_dialog(self, _('Cannot convert'),
|
||||||
_('No books selected'))
|
_('No books selected'))
|
||||||
d.exec_()
|
d.exec_()
|
||||||
return [], []
|
return None
|
||||||
return [self.library_view.model().db.id(r) for r in rows]
|
return [self.library_view.model().db.id(r) for r in rows]
|
||||||
|
|
||||||
def convert_bulk(self, checked):
|
def convert_bulk(self, checked):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user