Fix for trying to get story URLs with no books selected.

This commit is contained in:
Jim Miller 2014-09-11 11:47:00 -05:00
parent 79971745a2
commit be34b6718f

View file

@ -420,7 +420,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
def list_story_urls(self):
'''Get list of URLs from existing books.'''
if self.gui.current_view().selectionModel().selectedRows() == 0 :
if not self.gui.current_view().selectionModel().selectedRows() :
self.gui.status_bar.show_message(_('No Selected Books to Get URLs From'),
3000)
return