summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Heiko Voigt <hvoigt@hvoigt.net>2011-02-06 18:01:08 +0100
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2011-02-06 22:03:39 +0000
commit9e34e62bcbef12d290ecc0854df9117009873a3f (patch)
treef37ec142523170c15defb8bf0b284d14765aa8a9 /lib
parentgit-gui: handle meta diff header lines only in the header section (diff)
downloadtgif-9e34e62bcbef12d290ecc0854df9117009873a3f.tar.xz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/transport.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/transport.tcl b/lib/transport.tcl
index 60e3a642c5..321f595d63 100644
--- a/lib/transport.tcl
+++ b/lib/transport.tcl
@@ -135,7 +135,9 @@ proc do_push_anywhere {} {
-value remote \
-variable push_urltype
if {$use_ttk} {
- ttk::combobox $w.dest.remote_m -textvariable push_remote \
+ ttk::combobox $w.dest.remote_m -state readonly \
+ -exportselection false \
+ -textvariable push_remote \
-values $all_remotes
} else {
eval tk_optionMenu $w.dest.remote_m push_remote $all_remotes