@matheusbsbs / matheus-bagliano / commits / 9e34e62bcb
Fork 0

git gui: keep selected branch when remote is changed in push dialog

The selection of the branch to be pushed would be cleared when the remote was changed. This seems to be dependent on the fact that the selected content in the combobox was exported to the clipboard. It was only apparent when using the new ttk widget. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Heiko Voigt committed Feb 6, 2011 at 18:01 UTC 9e34e62bcbef12d290ecc0854df9117009873a3f
1 file changed +3 -1
lib/transport.tcl
+3 -1
@@ -135,7 +135,9 @@ proc do_push_anywhere {} {
135 -value remote \
136 -variable push_urltype
137 if {$use_ttk} {
138 - ttk::combobox $w.dest.remote_m -textvariable push_remote \
138 + ttk::combobox $w.dest.remote_m -state readonly \
139 + -exportselection false \
140 + -textvariable push_remote \
141 -values $all_remotes
142 } else {
143 eval tk_optionMenu $w.dest.remote_m push_remote $all_remotes