Window now goes away, hopefully.
authorMichael Gregson <mgregson@csclub.uwaterloo.ca>
Wed, 11 Mar 2009 06:24:57 +0000 (02:24 -0400)
committerMichael Gregson <mgregson@csclub.uwaterloo.ca>
Wed, 11 Mar 2009 06:24:57 +0000 (02:24 -0400)
ceo/urwid/library.py

index 3848ba8..b68c562 100644 (file)
@@ -134,9 +134,9 @@ class BookAddPage(WizardPanel):
             if currents.count() == 0:
                 lib.Book(isbn=isbn, title=book.title,
                          year=book.year, publisher=book.publisher)
             if currents.count() == 0:
                 lib.Book(isbn=isbn, title=book.title,
                          year=book.year, publisher=book.publisher)
+                pop_window()
             else:
                 set_status("Book already exists, fucker.")
             else:
                 set_status("Book already exists, fucker.")
-                
         except PyMazonError, e:
             set_status("Amazon thinks this is not a book.  Take it up with them.")
         return False
         except PyMazonError, e:
             set_status("Amazon thinks this is not a book.  Take it up with them.")
         return False