Fix for saved variable update from older versions not importing books properly.

Jayden Platell [04-27-14 - 21:08]
Fix for saved variable update from older versions not importing books properly.
Filename
Librarian.lua
diff --git a/Librarian.lua b/Librarian.lua
index 0170003..f42438f 100644
--- a/Librarian.lua
+++ b/Librarian.lua
@@ -155,7 +155,7 @@ function Librarian:UpdateSavedVariables()
 		for _,book in ipairs(self.localSavedVars.books) do
 			local timeStamp = book.timeStamp
 			local unread = book.unread
-			self:OpenBook(book)
+			self:AddBook(book)
 			local characterBook = self:FindCharacterBook(book.title)
 			if characterBook then characterBook.timeStamp = timeStamp end
 			local globalBook = self:FindBook(book.title)
@@ -165,7 +165,7 @@ function Librarian:UpdateSavedVariables()
 			end
 		end
 		self.localSavedVars.books = nil
-		self:SortBooks()
+		self:RefreshData()
 	end
 end