{"action":"created","comment":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/34629156","id":34629156,"diff_hunk":"@@ -157,8 +175,41 @@ DlgCreateGame::DlgCreateGame(const ServerInfo_Game &gameInfo, const QMap<int, QS\n     setWindowTitle(tr(\"Game information\"));\n }\n \n+void DlgCreateGame::actReset()\n+{\n+    descriptionEdit->setText(\"\");\n+    maxPlayersEdit->setValue(2);\n+\n+    passwordEdit->setText(\"\");\n+    onlyBuddiesCheckBox->setChecked(false);\n+    onlyRegisteredCheckBox->setChecked(true);\n+\n+    spectatorsAllowedCheckBox->setChecked(true);\n+    spectatorsNeedPasswordCheckBox->setChecked(false);\n+    spectatorsCanTalkCheckBox->setChecked(false);\n+    spectatorsSeeEverythingCheckBox->setChecked(false);\n+\n+    QMapIterator<int, QCheckBox *> gameTypeCheckBoxIterator(gameTypeCheckBoxes);\n+    while (gameTypeCheckBoxIterator.hasNext()) {\n+        gameTypeCheckBoxIterator.next();\n+        gameTypeCheckBoxIterator.value()->setChecked(false);\n+    }\n+\n+    descriptionEdit->setFocus();\n+}\n+\n void DlgCreateGame::actOK()\n {\n+    settingsCache->setGameDescription(descriptionEdit->text());\n+    settingsCache->setMaxPlayers(maxPlayersEdit->value());\n+    settingsCache->setGamePassword(passwordEdit->text());","path":"cockatrice/src/dlg_creategame.cpp","position":81,"original_position":81,"commit_id":"fa1982217fb0a1d6e7e2a0d69bf122b2ceeafb29","original_commit_id":"fa1982217fb0a1d6e7e2a0d69bf122b2ceeafb29","user":{"login":"poixen","id":2134793,"avatar_url":"https://avatars.githubusercontent.com/u/2134793?v=3","gravatar_id":"","url":"https://api.github.com/users/poixen","html_url":"https://github.com/poixen","followers_url":"https://api.github.com/users/poixen/followers","following_url":"https://api.github.com/users/poixen/following{/other_user}","gists_url":"https://api.github.com/users/poixen/gists{/gist_id}","starred_url":"https://api.github.com/users/poixen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poixen/subscriptions","organizations_url":"https://api.github.com/users/poixen/orgs","repos_url":"https://api.github.com/users/poixen/repos","events_url":"https://api.github.com/users/poixen/events{/privacy}","received_events_url":"https://api.github.com/users/poixen/received_events","type":"User","site_admin":false},"body":"The password is even visible. How is this partially right. It's bad design. ","created_at":"2015-07-14T22:44:43Z","updated_at":"2015-07-14T22:44:43Z","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1247#discussion_r34629156","pull_request_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247","_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/34629156"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1247#discussion_r34629156"},"pull_request":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247"}}},"pull_request":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247","id":39757196,"html_url":"https://github.com/Cockatrice/Cockatrice/pull/1247","diff_url":"https://github.com/Cockatrice/Cockatrice/pull/1247.diff","patch_url":"https://github.com/Cockatrice/Cockatrice/pull/1247.patch","issue_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1247","number":1247,"state":"open","locked":false,"title":"Remember settings of last created game","user":{"login":"Fizztastic","id":11285250,"avatar_url":"https://avatars.githubusercontent.com/u/11285250?v=3","gravatar_id":"","url":"https://api.github.com/users/Fizztastic","html_url":"https://github.com/Fizztastic","followers_url":"https://api.github.com/users/Fizztastic/followers","following_url":"https://api.github.com/users/Fizztastic/following{/other_user}","gists_url":"https://api.github.com/users/Fizztastic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fizztastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fizztastic/subscriptions","organizations_url":"https://api.github.com/users/Fizztastic/orgs","repos_url":"https://api.github.com/users/Fizztastic/repos","events_url":"https://api.github.com/users/Fizztastic/events{/privacy}","received_events_url":"https://api.github.com/users/Fizztastic/received_events","type":"User","site_admin":false},"body":"Fix #1069 \r\n\r\n-Adds a reset button to the create game dialog\r\n![reset](https://cloud.githubusercontent.com/assets/11285250/8636556/122479b4-2837-11e5-872a-d65b83050c6b.jpg)\r\n","created_at":"2015-07-12T05:32:16Z","updated_at":"2015-07-14T22:44:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66dfa1b794239207ce46500ea563ef103e3eb90a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247/commits","review_comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247/comments","review_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1247/comments","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/fa1982217fb0a1d6e7e2a0d69bf122b2ceeafb29","head":{"label":"Fizztastic:fix_1069","ref":"fix_1069","sha":"fa1982217fb0a1d6e7e2a0d69bf122b2ceeafb29","user":{"login":"Fizztastic","id":11285250,"avatar_url":"https://avatars.githubusercontent.com/u/11285250?v=3","gravatar_id":"","url":"https://api.github.com/users/Fizztastic","html_url":"https://github.com/Fizztastic","followers_url":"https://api.github.com/users/Fizztastic/followers","following_url":"https://api.github.com/users/Fizztastic/following{/other_user}","gists_url":"https://api.github.com/users/Fizztastic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fizztastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fizztastic/subscriptions","organizations_url":"https://api.github.com/users/Fizztastic/orgs","repos_url":"https://api.github.com/users/Fizztastic/repos","events_url":"https://api.github.com/users/Fizztastic/events{/privacy}","received_events_url":"https://api.github.com/users/Fizztastic/received_events","type":"User","site_admin":false},"repo":{"id":38951071,"name":"Cockatrice","full_name":"Fizztastic/Cockatrice","owner":{"login":"Fizztastic","id":11285250,"avatar_url":"https://avatars.githubusercontent.com/u/11285250?v=3","gravatar_id":"","url":"https://api.github.com/users/Fizztastic","html_url":"https://github.com/Fizztastic","followers_url":"https://api.github.com/users/Fizztastic/followers","following_url":"https://api.github.com/users/Fizztastic/following{/other_user}","gists_url":"https://api.github.com/users/Fizztastic/gists{/gist_id}","starred_url":"https://api.github.com/users/Fizztastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fizztastic/subscriptions","organizations_url":"https://api.github.com/users/Fizztastic/orgs","repos_url":"https://api.github.com/users/Fizztastic/repos","events_url":"https://api.github.com/users/Fizztastic/events{/privacy}","received_events_url":"https://api.github.com/users/Fizztastic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fizztastic/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":true,"url":"https://api.github.com/repos/Fizztastic/Cockatrice","forks_url":"https://api.github.com/repos/Fizztastic/Cockatrice/forks","keys_url":"https://api.github.com/repos/Fizztastic/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fizztastic/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fizztastic/Cockatrice/teams","hooks_url":"https://api.github.com/repos/Fizztastic/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/Fizztastic/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/Fizztastic/Cockatrice/events","assignees_url":"https://api.github.com/repos/Fizztastic/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/Fizztastic/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/Fizztastic/Cockatrice/tags","blobs_url":"https://api.github.com/repos/Fizztastic/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fizztastic/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fizztastic/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fizztastic/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fizztastic/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/Fizztastic/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/Fizztastic/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/Fizztastic/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/Fizztastic/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/Fizztastic/Cockatrice/subscription","commits_url":"https://api.github.com/repos/Fizztastic/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fizztastic/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fizztastic/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fizztastic/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fizztastic/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/Fizztastic/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fizztastic/Cockatrice/merges","archive_url":"https://api.github.com/repos/Fizztastic/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fizztastic/Cockatrice/downloads","issues_url":"https://api.github.com/repos/Fizztastic/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/Fizztastic/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/Fizztastic/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/Fizztastic/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fizztastic/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/Fizztastic/Cockatrice/releases{/id}","created_at":"2015-07-12T05:24:52Z","updated_at":"2015-07-12T05:24:54Z","pushed_at":"2015-07-14T20:52:02Z","git_url":"git://github.com/Fizztastic/Cockatrice.git","ssh_url":"git@github.com:Fizztastic/Cockatrice.git","clone_url":"https://github.com/Fizztastic/Cockatrice.git","svn_url":"https://github.com/Fizztastic/Cockatrice","homepage":"","size":29556,"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":"9edacd7b3ec5b08742ab215950430f5118d2287f","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-07-14T19:46:09Z","pushed_at":"2015-07-14T20:52:03Z","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":39062,"stargazers_count":281,"watchers_count":281,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":181,"mirror_url":null,"open_issues_count":200,"forks":181,"open_issues":200,"watchers":281,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1247"},"issue":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1247"},"comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1247/comments"},"review_comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247/comments"},"review_comment":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1247/commits"},"statuses":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/fa1982217fb0a1d6e7e2a0d69bf122b2ceeafb29"}}}}