mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
don't crash when invitation dialog cancelled
This commit is contained in:
parent
d479486521
commit
1b6ce4861f
1 changed files with 5 additions and 4 deletions
|
@ -74,12 +74,13 @@ gtkaskm( const gchar* message, AskMInfo* infos, int nInfos )
|
|||
|
||||
gtk_main();
|
||||
|
||||
if ( !state.cancelled ) {
|
||||
for ( ii = 0; ii < nInfos; ++ii ) {
|
||||
for ( ii = 0; ii < nInfos; ++ii ) {
|
||||
AskMInfo* info = &infos[ii];
|
||||
if ( !state.cancelled ) {
|
||||
const gchar* txt = gtk_entry_get_text( GTK_ENTRY(fields[ii]) );
|
||||
XP_LOGF( "%s: got text %s", __func__, txt );
|
||||
AskMInfo* info = &infos[ii];
|
||||
*info->result = g_strdup( txt );
|
||||
} else {
|
||||
*info->result = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue