Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] Re: Patch: disable turn done button until game really sta
Home

[Freeciv-Dev] Re: Patch: disable turn done button until game really sta

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Patch: disable turn done button until game really starts (PR#307)
From: Mika Korhonen <mikak@xxxxxxxxxxxx>
Date: Fri, 17 Mar 2000 11:46:25 +0200 (EET)

On Thu, 16 Mar 2000, Jeff Mallatt wrote:

>At 2000/03/16 02:05 , Mika Korhonen wrote:
>>
>>In gtk client the Turn done button appears clickable even if game has not
>>yet been started. This single-row :-) patch disables the button initially.
>>
>
>Thanks.  I hadn't noticed this, before.
>
>Now that I looked at it, I noticed that your patch misses on (hopefully
>rare) case: when the server disconnects from the client in the middle of a
>game.  When the client reconnects, the Turn Done button will be enabled
>even before the game is restarted.

You're right. I just reasoned that half asleep after work without bothering
to think whether there is another case where the dialog gets created and
the button should be enabled.

>
>How about moving your one line into gui_server_connect() in connectdlg.c?
>
>Attached is a patch which does this, and implements the same fix in the Xaw
>client.
>

That's the way you do it. Thanks.

        Mika    




[Prev in Thread] Current Thread [Next in Thread]