Skip to content

Wrong view active after restart #1022

@JFritzle

Description

@JFritzle

Describe the bug

Issue 1:
After restart, QMS may not show same view active being active at closing.

Issue 2:
When closing QMS while track editor tab is open, (for non-insiders) it is not predictable which view is active after restart.

What have you done to circle down the problem?

Issue is due to saving last active tab number instead of saving last active view's name or unique key.
After restart, tab number no longer points to last active view.

To Reproduce

See sequence of screenshots with description

Expected behavior

After QMS restart, same map view is expected to be shown as before when closing QMS, regardless of the history.

Screenshots

Issue 1 - Screenshot 1
Track Track was opened to edit from workspace,
editor tab was moved to 1st position on the left,
2nd view's Cycling tab was selected:
Image

Issue 1 - Screenshot 2
QMS was closed and restarted,
3rd view Hiking is now set as current view:
Image

Issue 2 - Screenshot 1
Tracks North-South and West-East were opened to edit from workspace,
editor tabs were moved as shown,
editor tab North-South was selected:
Image

Issue 2 - Screenshot 2
While editor tab North-South was open, QMS was closed and restarted,
3rd view Hiking is now set as current view:
Image

Attachments

Tracebacks

Desktop

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

Additional context

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