Skip to content
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

[FIX] OWWidget: Preserve widget geometry between hide/show events #3304

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

Fixes gh-3240

The fix from gh-2027 did not execute when the widget had no existing
saved geometry to restore (i.e. on first use or after 'Reset Widget
Settings' was run).

Description of changes

Move the gh-2027 code to showEvent and execute it always on first show event.

Includes
  • Code changes
  • Tests
  • Documentation

The fix from biolabgh-2027 did not execute when the widget had no existing
saved geometry to restore (i.e. on first use or after 'Reset Widget
Settings' was run).
@codecov-io
Copy link

Codecov Report

Merging #3304 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3304      +/-   ##
==========================================
+ Coverage   82.57%   82.58%   +<.01%     
==========================================
  Files         348      348              
  Lines       61395    61396       +1     
==========================================
+ Hits        50697    50701       +4     
+ Misses      10698    10695       -3

@janezd janezd merged commit a5e63e9 into biolab:master Oct 19, 2018
@ales-erjavec ales-erjavec deleted the fixes/first-show branch May 20, 2019 11:30
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.

Most widgets don't restore geometry when resized, closed and reopened
3 participants