don't crash when invitation dialog cancelled

This commit is contained in:
Eric House 2015-06-28 09:00:41 -07:00
parent d479486521
commit 1b6ce4861f

View file

@ -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;
}
}