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