mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-13 08:01:33 +01:00
Don't re-open conns dlg if in standalone mode
This commit is contained in:
parent
13e50dd149
commit
4e8d340304
1 changed files with 9 additions and 2 deletions
|
@ -725,12 +725,19 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
handlePrefsButton( hDlg, globals, state );
|
||||
break;
|
||||
|
||||
case IDOK:
|
||||
if ( !state->connsComplete && !callConnsDlg( state ) ) {
|
||||
case IDOK: {
|
||||
DeviceRole role = (DeviceRole)
|
||||
SendDlgItemMessage( hDlg, state->roleComboId,
|
||||
GETCURSEL(globals), 0, 0L );
|
||||
if ( role != SERVER_STANDALONE
|
||||
&& !state->connsComplete
|
||||
&& !callConnsDlg( state ) ) {
|
||||
break;
|
||||
} else if ( !stateToGameInfo( state ) ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* FALLTHRU */
|
||||
case IDCANCEL:
|
||||
EndDialog(hDlg, id);
|
||||
state->userCancelled = id == IDCANCEL;
|
||||
|
|
Loading…
Reference in a new issue