When opening a new file, first load the file into the definitions text
before wiring up / initializing the new tab. This means that the file's name is not asked for, and thus a new "untitled" number is not allocated too early closes PR 12361 (and hopefully introduces no new ones)
This commit is contained in:
parent
7b9cb97654
commit
7f96ee19e0
|
@ -2790,8 +2790,8 @@ module browser threading seems wrong.
|
|||
(get-defs-tab-label defs #f))
|
||||
200))
|
||||
(init-definitions-text new-tab)
|
||||
(change-to-nth-tab (- (send tabs-panel get-number) 1))
|
||||
(when filename (send defs load-file filename))
|
||||
(change-to-nth-tab (- (send tabs-panel get-number) 1))
|
||||
(send ints initialize-console)
|
||||
(send tabs-panel set-selection (- (send tabs-panel get-number) 1))
|
||||
(set! newest-frame this)
|
||||
|
|
Loading…
Reference in New Issue
Block a user