Skip to content

3815: Fix for project load breaking the replace fit button#3816

Merged
krzywon merged 1 commit intomainfrom
3815-project-load-replace-data-action-fix
Dec 17, 2025
Merged

3815: Fix for project load breaking the replace fit button#3816
krzywon merged 1 commit intomainfrom
3815-project-load-replace-data-action-fix

Conversation

@krzywon
Copy link
Copy Markdown
Contributor

@krzywon krzywon commented Dec 11, 2025

Description

On line 303 of sas.qtgui.MainWindow.DataExplorer, initPerspectives() is called as part of the project load process. Init perspectives destroys existing perspectives and creates fresh ones. This initialization also creates a new sub-menu for the send to button. While the menu is replaced, the trigger action is not renewed on the new menu item, so no connection is made. I've moved the connection into the method that creates the action to ensure any new actions created are linked properly.

Fixes #3815

How Has This Been Tested?

Locally, tested loading a project and made sure the replace option replaces data in a fit tab.

Review Checklist:

[if using the editor, use [x] in place of [ ] to check a box]

Documentation (check at least one)

  • There is nothing that needs documenting
  • Documentation changes are in this PR
  • There is an issue open for the documentation (link?)

Installers

  • There is a chance this will affect the installers, if so
    • Windows installer (GH artifact) has been tested (installed and worked)
    • MacOSX installer (GH artifact) has been tested (installed and worked)
    • Wheels installer (GH artifact) has been tested (installed and worked)

Licensing (untick if necessary)

  • The introduced changes comply with SasView license (BSD 3-Clause)

…on is created to ensure the trigger is active on project loading
@krzywon krzywon requested a review from gonzalezma December 11, 2025 19:47
Copy link
Copy Markdown
Contributor

@gonzalezma gonzalezma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested functionality in Windows 11 and works as expected.

@krzywon
Copy link
Copy Markdown
Contributor Author

krzywon commented Dec 16, 2025

As discussed at our meeting today, this will need a code review before merging. @rozyczko, would you be able to give a check at some point?

Copy link
Copy Markdown
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR correctly removes the duplicate connection from contextMenu(), leaving only the connection in createSendToMenu() where it logically belongs.
Looks good.

@krzywon krzywon merged commit 85dc6a9 into main Dec 17, 2025
40 checks passed
@krzywon krzywon deleted the 3815-project-load-replace-data-action-fix branch December 17, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replacing data in the current page does not work when working from a saved json project

3 participants