mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Set addrChanged on role change even if conns dlg not used: fixes bug
where freshly installed device fails to connect.
This commit is contained in:
parent
a3fa0d402c
commit
5cf5345eb1
1 changed files with 5 additions and 4 deletions
|
@ -366,6 +366,10 @@ handleConnOptionsButton( GameInfoState* state )
|
||||||
role = (DeviceRole)SendDlgItemMessage( hDlg, state->roleComboId,
|
role = (DeviceRole)SendDlgItemMessage( hDlg, state->roleComboId,
|
||||||
GETCURSEL(globals), 0, 0L);
|
GETCURSEL(globals), 0, 0L);
|
||||||
value.ng_role = state->curRole = role;
|
value.ng_role = state->curRole = role;
|
||||||
|
if ( value.ng_role != globals->gameInfo.serverRole ) {
|
||||||
|
state->results.addrChanged = XP_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
newg_attrChanged( state->newGameCtx, NG_ATTR_ROLE, value );
|
newg_attrChanged( state->newGameCtx, NG_ATTR_ROLE, value );
|
||||||
raiseForRoleChange( state, role );
|
raiseForRoleChange( state, role );
|
||||||
} /* handleConnOptionsButton */
|
} /* handleConnOptionsButton */
|
||||||
|
@ -768,10 +772,7 @@ GameInfo( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDOK: {
|
case IDOK: {
|
||||||
DeviceRole role = (DeviceRole)
|
if ( state->curRole != SERVER_STANDALONE
|
||||||
SendDlgItemMessage( hDlg, state->roleComboId,
|
|
||||||
GETCURSEL(globals), 0, 0L );
|
|
||||||
if ( role != SERVER_STANDALONE
|
|
||||||
&& !comms_checkComplete(
|
&& !comms_checkComplete(
|
||||||
&state->prefsPrefs->addrRec )
|
&state->prefsPrefs->addrRec )
|
||||||
&& !callConnsDlg( state ) ) {
|
&& !callConnsDlg( state ) ) {
|
||||||
|
|
Loading…
Reference in a new issue