Selection is not cleared when new message arrives

Bug #1672059 reported by GunChleoc on 2017-03-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Low
GunChleoc

Bug Description

When a player receives a new message, the selection in the message box is not cleared. It would be annoying to have it cleared while the player is selecting stuff though - maybe not select the incoming message at all then?

kaputtnik (franku) wrote :

The current selected message should not be cleared until another message is selected. I am fine with the current behavior and do not understand what the bug is...

GunChleoc (gunchleoc) wrote :

Scenario: User selected 1 message. Then, a new message arrives = user suddenly has 2 selected messages. And another new message = 3 selected messages etc...

GunChleoc (gunchleoc) wrote :

So, I guess the actual bug is: Do not select newly incoming messages unless the inbox was empty.

kaputtnik (franku) wrote :

> Scenario: User selected 1 message. Then, a new message arrives = user suddenly has 2 selected messages. And another new message = 3 selected messages etc...

Thanks for explanantion, but i can't confirm this for a normal game. If i select a message and a new message arrives the previous selected message is the only selected one.

The same goes for the situation if the message get opened: The first message is selected and if a new message arrives the selected message is the only selected one.

For a scenario i didn't test this.

Don't know if it is worth a bug: If a savegame is loaded using another language, the images (e.g. of buildings) are not shown in the bottom section of the message menu. The attached savegame was saved using german language.

GunChleoc (gunchleoc) wrote :

I get that bug on trunk too, but not in

https://code.launchpad.net/~widelands-dev/widelands/fh1_width_and_mapobject_messages/+merge/318189

So, it will fix itself :)

Maybe the bug I reported here only happens in one of my branches - I don't remember which one now though.

GunChleoc (gunchleoc) wrote :

The bug happens only with popup messages, e.g. the status messages in Collectors.

The attached branch has the following fix:

- If the user selected more than one entry, we assume that the user is currently cleaning up stuff etc, so do not change the selection.

- In popup mode, if 1 message or no messages are selected, open the message window if it was closed and toogle to inbox. Clear the old selection and select the incoming message. Scroll to top.

Changed in widelands:
status: New → Confirmed
assignee: nobody → GunChleoc (gunchleoc)
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers