Selection is not cleared when new message arrives

Bug #1672059 reported by GunChleoc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

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?

Related branches

Revision history for this message
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...

Revision history for this message
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...

Revision history for this message
GunChleoc (gunchleoc) wrote :

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

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
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
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.