-
Notifications
You must be signed in to change notification settings - Fork 203
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
EMSUSD-255 Fixes an issue in Layer Editor where Save All icon was not functioning properly. #3222
EMSUSD-255 Fixes an issue in Layer Editor where Save All icon was not functioning properly. #3222
Conversation
… functioning properly.
QLayout* anonLayout = _anonLayersWidget->layout(); | ||
for (int i = 0, count = anonLayout->count(); i < count; ++i) { | ||
auto row = dynamic_cast<SaveLayerPathRow*>(anonLayout->itemAt(i)->widget()); | ||
for (int i = 0, count = _saveLayerPathRows.size(); i < count; ++i) { |
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 kept the order of iteration the same as before, Although in this case it shouldn't matter as it is only picking one item.
QLayout* anonLayout = _anonLayersWidget->layout(); | ||
for (int i = 0, count = anonLayout->count(); i < count; ++i) { | ||
func(anonLayout->itemAt(i)->widget()); | ||
for (int i = 0, count = _saveLayerPathRows.size(); i < count; ++i) { |
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.
Same here, the order of iteration is from top layer to bottom
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.
LGTM
EMSUSD-255 Fixes an issue in Layer Editor where Save All icon was not functioning properly.
The issue occurred due to Qt UI layout changes. The solution is to keep track of the SaveLayerPathRow data separately so that it can be iterated over when saving all layers.