mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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();
|
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]) );
|
const gchar* txt = gtk_entry_get_text( GTK_ENTRY(fields[ii]) );
|
||||||
XP_LOGF( "%s: got text %s", __func__, txt );
|
XP_LOGF( "%s: got text %s", __func__, txt );
|
||||||
AskMInfo* info = &infos[ii];
|
} else {
|
||||||
*info->result = g_strdup( txt );
|
*info->result = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue