Skip to content

Buggy handling of views with identical names #1021

@JFritzle

Description

@JFritzle

Describe the bug

Views with identical view names are handled buggy.
At least issues mentioned with screenshots below occur.

What have you done to circle down the problem?

To Reproduce

See sequence of screenshots with description

Expected behavior

Either duplicate views with same name are no longer allowed
or incorrect handling of views with same name is fixed.

Screenshots

Screenshot 1
5th view View 1 was added,
then renamed equal to 1st view's name City,
then 1st view City was set as current view:
Image

Screenshot 2
5th view City was set as current view,
then waypoint Berlin, Germany, de was clicked in workspace:
Image
-> Same map "Mapsforge Map City" claims to be active in both City views.
While tracks are visible behind welcome window, map is not visible in 5th view.

Screenshot 3
After closing and restarting QMS it gets even worse:
Image
-> Both City views are now showing identical but blurry.
Differently assigned properties of both City views have gone lost.
Projection settings of both City views have gone lost.
1st view City had previously been linked to 2nd to 4th view: link has gone lost.
Map and DEM orderings have gone lost.

Attachments

Tracebacks

Desktop

  • OS: any
  • QMapShack Version: current
  • Window Manager: -

Additional context

Different views with duplicate names have to be identified by different unique keys instead of same name. Being identified only by same name, they share same properties after restart and different properties previously set are then lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions