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 attribute form position/size is remembered only per layer/feature combo #6611

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

nyalldawson
Copy link
Collaborator

Revert 5b9be7a

Since the attribute table dialog object name is set to match
the layer/featureid combo, this commit was causing the attribute
form dialog to remember its position and size for each
feature/layer combo individually.

That's NOT what we want!

Fixes #18426

Since the attribute table dialog object name is set to match
the layer/featureid combo, this commit was causing the attribute
form dialog to remember its position and size for each
feature/layer combo individually.

That's NOT what we want!

Fixes qgis#18426
@nyalldawson nyalldawson merged commit bf12404 into qgis:master Mar 16, 2018
@nyalldawson nyalldawson deleted the fix_18426 branch March 16, 2018 01:01
@slarosa
Copy link
Member

slarosa commented Mar 16, 2018

sorry.

@nyalldawson
Copy link
Collaborator Author

@slarosa no need to apologise for work you've generously donated!

{
// WARNING!!!! Don't use QgsGui::enableAutoGeometryRestore for this dialog -- the object name
// is dynamic and is set to match the layer/feature combination.
QgsSettings().setValue( QStringLiteral( "Windows/AttributeDialog/geometry" ), QDialog::saveGeometry() );
Copy link
Member

Choose a reason for hiding this comment

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

@nyalldawson are you sure we can't use enableAutoGeometryRestore here. Pretty sure I added support for dynamic keys if not I can have a look at how.

Copy link
Member

Choose a reason for hiding this comment

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

If anything just use the same settings wrapper that enableAutoGeometryRestore does so we can keep the logic in one place.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Got an example? I tried this approach originally but couldn't work out out

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.

None yet

3 participants