From be34b6718fc2dd231c462d6664e2f923589ea528 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 11 Sep 2014 11:47:00 -0500 Subject: [PATCH] Fix for trying to get story URLs with no books selected. --- calibre-plugin/ffdl_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index 11160770..5863ec11 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -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