Skip to content

Fix uncommon crash when deleting custom profile#1880

Merged
diogotr7 merged 2 commits intoantonpup:devfrom
Wibble199:fix/custom-profile-delete-crash
Jan 11, 2020
Merged

Fix uncommon crash when deleting custom profile#1880
diogotr7 merged 2 commits intoantonpup:devfrom
Wibble199:fix/custom-profile-delete-crash

Conversation

@Wibble199
Copy link
Collaborator

@Wibble199 Wibble199 commented Jan 9, 2020

Fixes occasional crash when deleting a custom profile.

This sometimes occured when the previous profile in the list was hidden and the user had not shown the hidden profiles. Aurora would then try to select the item before the one deleted and try to get the average color of the profile's icon and crash (perhaps since the resource hadn't been loaded or something?).

Now, when deleting a profile, it will select the next non-hidden profile.

This sometimes occured when the previous profile in the list was hidden and the user had not shown the hidden profiles. Aurora would then select the item before the one deleted and try to get the average color of the bitmap and crash (perhaps since the resource hadn't been loaded?).
Now selects the previously non-hidden profile.
@diogotr7 diogotr7 merged commit 51cb866 into antonpup:dev Jan 11, 2020
@Wibble199 Wibble199 deleted the fix/custom-profile-delete-crash branch January 11, 2020 15:48
@diogotr7 diogotr7 mentioned this pull request Apr 10, 2020
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.

2 participants