{"action":"created","comment":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/37349120","id":37349120,"diff_hunk":"@@ -34,8 +34,8 @@ DlgEditUser::DlgEditUser(QWidget *parent, QString email, int gender, QString cou\n     int i = 1;\n     foreach(QString c, countries)\n     {\n-        countryEdit->addItem(QPixmap(\":/resources/countries/\" + c + \".svg\"), c);\n-        if(c == country)\n+        countryEdit->addItem(QPixmap(\":/resources/countries/\" + c.toLower() + \".svg\"), c);","path":"cockatrice/src/dlg_edit_user.cpp","position":6,"original_position":6,"commit_id":"04ac555c9bf1bb7eacfae5284ac4aca0539d348f","original_commit_id":"04ac555c9bf1bb7eacfae5284ac4aca0539d348f","user":{"login":"ctrlaltca","id":1631111,"avatar_url":"https://avatars.githubusercontent.com/u/1631111?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrlaltca","html_url":"https://github.com/ctrlaltca","followers_url":"https://api.github.com/users/ctrlaltca/followers","following_url":"https://api.github.com/users/ctrlaltca/following{/other_user}","gists_url":"https://api.github.com/users/ctrlaltca/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrlaltca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrlaltca/subscriptions","organizations_url":"https://api.github.com/users/ctrlaltca/orgs","repos_url":"https://api.github.com/users/ctrlaltca/repos","events_url":"https://api.github.com/users/ctrlaltca/events{/privacy}","received_events_url":"https://api.github.com/users/ctrlaltca/received_events","type":"User","site_admin":false},"body":"I don't see the point in calling .toLower() here, since the values of ```c``` comes from ```SettingsCache::getCountries()```, that returns hardcoded lowercase values.","created_at":"2015-08-18T20:28:00Z","updated_at":"2015-08-18T20:28:00Z","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1381#discussion_r37349120","pull_request_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381","_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/37349120"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1381#discussion_r37349120"},"pull_request":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381"}}},"pull_request":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381","id":42528981,"html_url":"https://github.com/Cockatrice/Cockatrice/pull/1381","diff_url":"https://github.com/Cockatrice/Cockatrice/pull/1381.diff","patch_url":"https://github.com/Cockatrice/Cockatrice/pull/1381.patch","issue_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1381","number":1381,"state":"open","locked":false,"title":"Country to lower (fix win bug)","user":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"body":"Bug reported by @tooomm and @woogerboy21.\r\n\r\nUser country flag was sometimes set with the wrong case. This PR makes sure the country code is always lower case (except when you see it on somebody's profile, then it's upper).","created_at":"2015-08-16T01:34:07Z","updated_at":"2015-08-18T20:28:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98cb7081ea7b73edf5f53b0cebe5fa5101bafc90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381/commits","review_comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381/comments","review_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1381/comments","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/04ac555c9bf1bb7eacfae5284ac4aca0539d348f","head":{"label":"ZeldaZach:flags_to_lower","ref":"flags_to_lower","sha":"04ac555c9bf1bb7eacfae5284ac4aca0539d348f","user":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"repo":{"id":30373399,"name":"Cockatrice","full_name":"ZeldaZach/Cockatrice","owner":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZeldaZach/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":true,"url":"https://api.github.com/repos/ZeldaZach/Cockatrice","forks_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/forks","keys_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/teams","hooks_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/events","assignees_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/tags","blobs_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/subscription","commits_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/merges","archive_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/downloads","issues_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/releases{/id}","created_at":"2015-02-05T19:16:22Z","updated_at":"2015-04-27T20:24:40Z","pushed_at":"2015-08-16T01:31:35Z","git_url":"git://github.com/ZeldaZach/Cockatrice.git","ssh_url":"git@github.com:ZeldaZach/Cockatrice.git","clone_url":"https://github.com/ZeldaZach/Cockatrice.git","svn_url":"https://github.com/ZeldaZach/Cockatrice","homepage":"","size":30535,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Cockatrice:master","ref":"master","sha":"5634b564e856908afebbf316336b81b28b636095","user":{"login":"Cockatrice","id":9746249,"avatar_url":"https://avatars.githubusercontent.com/u/9746249?v=3","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"repo":{"id":2907031,"name":"Cockatrice","full_name":"Cockatrice/Cockatrice","owner":{"login":"Cockatrice","id":9746249,"avatar_url":"https://avatars.githubusercontent.com/u/9746249?v=3","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cockatrice/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":false,"url":"https://api.github.com/repos/Cockatrice/Cockatrice","forks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/forks","keys_url":"https://api.github.com/repos/Cockatrice/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cockatrice/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cockatrice/Cockatrice/teams","hooks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/events","assignees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/Cockatrice/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/tags","blobs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/Cockatrice/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscription","commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/Cockatrice/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cockatrice/Cockatrice/merges","archive_url":"https://api.github.com/repos/Cockatrice/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cockatrice/Cockatrice/downloads","issues_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/Cockatrice/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/Cockatrice/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cockatrice/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/Cockatrice/Cockatrice/releases{/id}","created_at":"2011-12-03T20:58:09Z","updated_at":"2015-08-18T11:25:59Z","pushed_at":"2015-08-18T12:23:42Z","git_url":"git://github.com/Cockatrice/Cockatrice.git","ssh_url":"git@github.com:Cockatrice/Cockatrice.git","clone_url":"https://github.com/Cockatrice/Cockatrice.git","svn_url":"https://github.com/Cockatrice/Cockatrice","homepage":"","size":42442,"stargazers_count":302,"watchers_count":302,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":188,"mirror_url":null,"open_issues_count":220,"forks":188,"open_issues":220,"watchers":302,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1381"},"issue":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1381"},"comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1381/comments"},"review_comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381/comments"},"review_comment":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1381/commits"},"statuses":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/04ac555c9bf1bb7eacfae5284ac4aca0539d348f"}}}}