Skip to content

Commit b851f51

Browse files
committedDec 12, 2015
Move initial database build after book compile
1 parent e215fc3 commit b851f51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/t3/Book.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ bool Book::Process( FILE *infile, wxProgressDialog &progress )
218218
percent = (int)( file_offset / (file_len/100L) );
219219
if( percent != old_percent )
220220
{
221+
progress.SetFocus();
221222
if( !progress.Update( percent>100 ? 100 : percent ) )
222223
{
223224
aborted = true;

‎src/t3/Canvas.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,11 @@ Canvas::Canvas
573573
objs.session = new Session;
574574
objs.log = new Log;
575575
objs.book = new Book;
576-
db_primitive_build_default_database( objs.repository->database.m_file.c_str() ); // immediately after book compile
577576
objs.cws = new CentralWorkSaver;
578-
// objs.db = new Database( objs.repository->database.m_file.c_str() );
579577
objs.tabs = new Tabs;
580578
objs.gl = NULL;
581579
GameLogic *gl = new GameLogic( this, lb );
580+
db_primitive_build_default_database( objs.repository->database.m_file.c_str() ); // immediately after book compile
582581

583582
// Hook up connections to GameLogic
584583
objs.gl = gl;

0 commit comments

Comments
 (0)
Please sign in to comment.