mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
gtk: remove assertion failure creating new games
I think this was related to changing the order in which save operations happen and that it's no longer valid to insist that there already be a rowid at this point, but could be wrong....
This commit is contained in:
parent
e07686491c
commit
3174705d63
2 changed files with 5 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ xwords_4.4.0.0*
|
|||
gcm_loop.shelf
|
||||
nohup.out
|
||||
/xwords4/android/XWords4-dbg/src/xw4dbg/assets/gitvers.txt
|
||||
/xwords4/linux/xwgames.sqldb
|
||||
|
|
|
@ -171,7 +171,7 @@ writeToDB( XWStreamCtxt* stream, void* closure )
|
|||
}
|
||||
|
||||
static void
|
||||
addSnap( CommonGlobals* cGlobals )
|
||||
addSnapshot( CommonGlobals* cGlobals )
|
||||
{
|
||||
LOG_FUNC();
|
||||
|
||||
|
@ -184,9 +184,8 @@ addSnap( CommonGlobals* cGlobals )
|
|||
XWStreamCtxt* stream = make_simple_stream( cGlobals );
|
||||
getImage( dctx, stream );
|
||||
removeSurface( dctx );
|
||||
sqlite3_int64 newRow = writeBlobColumnStream( stream, cGlobals->pDb,
|
||||
cGlobals->selRow, "snap" );
|
||||
XP_ASSERT( cGlobals->selRow == newRow );
|
||||
writeBlobColumnStream( stream, cGlobals->pDb, cGlobals->selRow, "snap" );
|
||||
// XP_ASSERT( cGlobals->selRow == newRow );
|
||||
stream_destroy( stream );
|
||||
}
|
||||
|
||||
|
@ -264,7 +263,7 @@ summarize( CommonGlobals* cGlobals )
|
|||
sqlite3_finalize( stmt );
|
||||
XP_USE( result );
|
||||
|
||||
addSnap( cGlobals );
|
||||
addSnapshot( cGlobals );
|
||||
}
|
||||
|
||||
GSList*
|
||||
|
|
Loading…
Reference in a new issue