{"thread":{"id":"26428","subject":"[PATCH] git gui: keep selected branch when remote is changed in push dialog","startedAt":"2011-02-06T17:01:08Z","lastAt":"2011-02-06T17:01:08Z","messageCount":1,"participants":["Heiko Voigt"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"160500","messageId":"20110206170055.GA47941@book.hvoigt.net","threadId":"26428","inReplyTo":null,"subject":"[PATCH] git gui: keep selected branch when remote is changed in push dialog","fromName":"Heiko Voigt","fromEmail":"hvoigt@hvoigt.net","sentAt":"2011-02-06T17:01:08Z","receivedAt":"2011-02-06T17:01:08Z","isPatch":true,"sender":{"key":"hvoigt@hvoigt.net","avatar":"https://avatars.githubusercontent.com/u/184958?v=4"},"body":"The selection of the branch to be pushed would be cleared when\nthe remote was changed. This seems to be dependent on the fact that\nthe selected content in the combobox was exported to the clipboard. It\nwas only apparent when using the new ttk widget.\n\nSigned-off-by: Heiko Voigt <hvoigt@hvoigt.net>\n---\nNote: This patch was created inside the official git repo but should\napply cleanly to git-gui's master using 'git am -p2'\n\n git-gui/lib/transport.tcl |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/git-gui/lib/transport.tcl b/git-gui/lib/transport.tcl\nindex 49155c7..e4e1add 100644\n--- a/git-gui/lib/transport.tcl\n+++ b/git-gui/lib/transport.tcl\n@@ -223,7 +223,9 @@ proc do_push_anywhere {} {\n \t\t\t-value remote \\\n \t\t\t-variable push_urltype\n \t\tif {$use_ttk} {\n-\t\t\tttk::combobox $w.dest.remote_m -textvariable push_remote \\\n+\t\t\tttk::combobox $w.dest.remote_m -state readonly \\\n+\t\t\t\t-exportselection false \\\n+\t\t\t\t-textvariable push_remote \\\n \t\t\t\t-values $all_remotes\n \t\t} else {\n \t\t\teval tk_optionMenu $w.dest.remote_m push_remote $all_remotes\n-- \n1.7.4.34.gd2cb1\n"}]}