зеркало из https://github.com/microsoft/git.git
gitk: Fix bug where editing an existing view would cause an infinite loop
This fixes a bug where changing the commit range or file list for an existing view and then clicking OK would cause gitk to go into an infinite loop. The problem was that newviewok was invoking reloadcommits via "run reloadcommits", but reloadcommits wasn't explicitly returning 0, and whatever it was returning was causing dorunq to run it over and over again. This fixes it by making reloadcommits return 0. Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Родитель
46308ea1da
Коммит
e7297a1c5f
1
gitk
1
gitk
|
@ -263,6 +263,7 @@ proc reloadcommits {} {
|
|||
catch {unset targetid}
|
||||
setcanvscroll
|
||||
getcommits
|
||||
return 0
|
||||
}
|
||||
|
||||
# This makes a string representation of a positive integer which
|
||||
|
|
Загрузка…
Ссылка в новой задаче