GUI convert: Don't try to convert when no books are selected.

This commit is contained in:
John Schember 2009-05-07 18:09:09 -04:00
parent 58f49ebeb5
commit 44b92f3819

View File

@ -1047,7 +1047,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
d = error_dialog(self, _('Cannot convert'),
_('No books selected'))
d.exec_()
return [], []
return None
return [self.library_view.model().db.id(r) for r in rows]
def convert_bulk(self, checked):