Skip to content

Commit

Permalink
gitk: Don't change cursor at end of layout if find in progress
Browse files Browse the repository at this point in the history
If the user is doing a find in files or patches, which changed the
cursor to a watch, don't change it back to a pointer when we reach
the end of laying out the graph.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Mar 18, 2006
1 parent f7a3e8d commit f4171a1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,7 @@ proc xcoord {i level ln} {
proc finishcommits {} {
global commitidx phase
global canv mainfont ctext maincursor textcursor
global findinprogress

if {$commitidx > 0} {
drawrest
Expand All @@ -1628,8 +1629,10 @@ proc finishcommits {} {
$canv create text 3 3 -anchor nw -text "No commits selected" \
-font $mainfont -tags textitems
}
. config -cursor $maincursor
settextcursor $textcursor
if {![info exists findinprogress]} {
. config -cursor $maincursor
settextcursor $textcursor
}
set phase {}
}

Expand Down Expand Up @@ -1657,7 +1660,7 @@ proc drawrest {} {
showstuff $commitidx

set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
#puts "overall $drawmsecs ms for $numcommits commits"
puts "overall $drawmsecs ms for $numcommits commits"
}

proc findmatches {f} {
Expand Down

0 comments on commit f4171a1

Please sign in to comment.