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

Ensure (Get|Set)ColumnWidth is not called on a non existant column. #518

Merged
merged 1 commit into from Jun 20, 2014

Conversation

glennricster
Copy link
Contributor

The AutomaticColumnWidth method can be called when the game list does not have any columns (for example when dolphin is starting). In this case wxWidgets assertions fail when (Get|Set)ColumnWidth are called on columns that do not exist. So check to make sure there are columns to prevent this.

@lioncash
Copy link
Member

Looks good to me.

@neobrain
Copy link
Member

Please change the commit message to include a short one-line summary at the top (put the description in the following lines). Also please use a short summary for the PR title, rather than stuffing the description into the title.

This is relevant because both the PR title and the first line of a commit message (and only the first X characters of it) are printed in various git logging views (e.g. git log --pretty=oneline or the GitHub commit list).

EDIT: Thanks.

The AutomaticColumnWidth method can be called when the game list does
not have any columns (for example when dolphin is starting).  In this
case wxWidgets assertions fail when (Get|Set)ColumnWidth are called on
columns that do not exist.  So check to make sure there are columns to
prevent this.
@glennricster glennricster changed the title The AutomaticColumnWidth method can be called when the game list does Ensure (Get|Set)ColumnWidth is not called on a non existant column. Jun 20, 2014
@neobrain
Copy link
Member

LGTM, too.

neobrain added a commit that referenced this pull request Jun 20, 2014
Ensure (Get|Set)ColumnWidth is not called on a non existant column.
@neobrain neobrain merged commit 07da9cb into dolphin-emu:master Jun 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants