The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ashley on March 20, 2011, 06:05:38 PM

Title: [110.0.1] Chat text is lost when password must be entered
Post by: Ashley on March 20, 2011, 06:05:38 PM
Steps to reproduce:

In a network game playing as a player which is password locked (e.g. make new player, set password, quit game, log back in as that player but don't enter password yet) open the message center and type in a new chat message. Hit enter to send the message -> Password prompt appears. Enter password and hit enter -> nothing happens (the message has vanished from the chat box, but does not get sent).

Expected behavior:

1. Message isn't sent, but remains in the chat box with the cursor in the chat box at the end of the message (so a second press of enter will send it).
2. Message should be sent after successful password entry.

Versions tested: 101.0.1, though I am pretty sure it happens in earlier versions too.
Title: Re: [110.0.1] Chat text is lost when password must be entered
Post by: prissi on March 20, 2011, 09:44:38 PM
That is true for all commands which require a password. Those will always fail until password unlocked.
Title: Re: [110.0.1] Chat text is lost when password must be entered
Post by: Ashley on March 20, 2011, 09:48:11 PM
Well in this case can we avoid the text being lost? It's annoying to type a message and then lose it. Maybe don't clear the text box until it is certain that the command has been sent to the server and accepted?
Title: Re: [110.0.1] Chat text is lost when password must be entered
Post by: Dwachs on March 05, 2012, 07:54:10 PM
should be fixed in r5522 as well.