mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +01:00
make same-device invites work on gtk
Added a confirm alert so accidental resends won't create useless games.
This commit is contained in:
parent
390753ae3a
commit
d36f5e7e49
1 changed files with 8 additions and 4 deletions
|
@ -717,9 +717,13 @@ relayInviteReceived( void* closure, NetLaunchInfo* invite )
|
||||||
int nRowIDs = VSIZE(rowids);
|
int nRowIDs = VSIZE(rowids);
|
||||||
getRowsForGameID( apg->cag.params->pDb, gameID, rowids, &nRowIDs );
|
getRowsForGameID( apg->cag.params->pDb, gameID, rowids, &nRowIDs );
|
||||||
|
|
||||||
if ( 0 < nRowIDs ) {
|
bool doIt = 0 == nRowIDs;
|
||||||
gtktell( apg->window, "Duplicate invite rejected (FIXME!!!)" );
|
if ( ! doIt ) {
|
||||||
} else {
|
doIt = GTK_RESPONSE_YES == gtkask( apg->window,
|
||||||
|
"Duplicate invitation received. Accept anyway?",
|
||||||
|
GTK_BUTTONS_YES_NO, NULL );
|
||||||
|
}
|
||||||
|
if ( doIt ) {
|
||||||
gameFromInvite( apg, invite, NULL );
|
gameFromInvite( apg, invite, NULL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue