Skip to content

Commit

Permalink
Fixed exception due to missing Finalize()
Browse files Browse the repository at this point in the history
  • Loading branch information
ffes committed May 29, 2014
1 parent 622c671 commit 1ff5fc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DlgEditLanguages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ static bool SaveLanguages()
// Bind the language to the statement
int libid = s_pLibrary->GetLibraryID();
stmt.Bind("@libid", libid);

// And save the record
stmt.SaveRecord();
stmt.Finalize();

// Now add records for all selected languages
stmt.Prepare("INSERT INTO LibraryLang(LibraryID, Lang) VALUES (@libid, @lang)");
Expand Down

0 comments on commit 1ff5fc5

Please sign in to comment.