From ef5b1b0e09c52197ebb117fe73ba3f77557bd3db Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sat, 28 Jan 2012 11:53:56 -0800 Subject: [PATCH] Removed hardcoded references to the console page/tab --- src/editor/shellbox.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/editor/shellbox.lua b/src/editor/shellbox.lua index 57487dfaa0..491d211982 100644 --- a/src/editor/shellbox.lua +++ b/src/editor/shellbox.lua @@ -270,9 +270,11 @@ end function ShellSupportRemote(client,uid) remotesend = client - -- change the name of the tab: console is the second page in the notebook - bottomnotebook:SetPageText(1, - client and "Remote console" or "Local console") + local index = bottomnotebook:GetPageIndex(out) + if index then + bottomnotebook:SetPageText(index, + client and "Remote console" or "Local console") + end end function ShellExecuteFile(wfilename)