Blob Blame History Raw
--- alexandria-0.6.9/lib/alexandria/ui/dialogs/new_book_dialog.rb.nothread	2013-02-16 09:59:08.000000000 +0900
+++ alexandria-0.6.9/lib/alexandria/ui/dialogs/new_book_dialog.rb	2013-02-16 10:41:58.000000000 +0900
@@ -345,15 +345,17 @@
                          get_images_async
                          false #continue == false if you get to here. Stop timeout_add.
                        end
-                     else
+                     elsif @find_thread
                        # Stop if the book find thread has stopped.
                        @find_thread.alive?
+                     else
+                       true
                      end
           # continue == false if @find_error OR if results are returned
           # timeout_add ends if continue is false!
 
           unless continue
-            unless @find_thread.alive? #This happens after find_thread is done
+            unless (@find_thread && @find_thread.alive?) #This happens after find_thread is done
               unless @destroyed
                 # Gtk.timeout_remove(progress_pulsing)
                 # @progressbar.hide