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:
Robby Findler 2011-11-30 16:44:45 -06:00
parent 7b9cb97654
commit 7f96ee19e0

View File

@ -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)