-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed plotter remembering correct tab when switching plot types #9635
Fixed plotter remembering correct tab when switching plot types #9635
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9635 +/- ##
==========================================
- Coverage 91.73% 91.72% -0.01%
==========================================
Files 430 430
Lines 26639 26649 +10
==========================================
+ Hits 24437 24444 +7
- Misses 2202 2205 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #9635 will not alter performanceComparing Summary
|
80acf00
to
f064b34
Compare
@@ -166,6 +178,7 @@ def __init__(self, config_file: str, parent: QWidget | None): | |||
|
|||
@Slot(int) | |||
def currentTabChanged(self, index: Any) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should index
be typed to int
here or will that break stuff? If it breaks stuff, should we add an assert on the type of index before using it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely should be int, as the slot is connected to the signal;
void QTabWidget::currentChanged(int index)
Nice catch!
f064b34
to
99623db
Compare
Reproduced the bug, and failed to reproduce it after this PR, so looks perfect. Bonus issue discovery in #9657. |
Issue
Resolves #9451
Approach
This pull request addresses an issue where the plotter was not storing the correct tab when switching between plot types. The approach involves modifying the relevant code to ensure that the correct tab is stored and displayed when the plot type is changed.
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable