Skip to content

Commit 38d783a

Browse files
Corrects title in Code Editor when opening file.
1 parent ac6ab49 commit 38d783a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/robotide/editor/customsourceeditor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class CodeEditorPanel(wx.Panel):
239239
def __init__(self, parent, main_frame, filepath=None):
240240
self.log = sys.stdout # From FileDialog
241241
self.path = filepath
242+
self.parent = parent
242243
wx.Panel.__init__(self, parent, size=(1, 1))
243244
self.mainFrame = main_frame
244245
self.editor = SourceCodeEditor(self, options={'tab markers':True, 'fold symbols':2})
@@ -384,6 +385,7 @@ def on_button(self, evt):
384385
self.path = filepath
385386
# self.log.write('%s\n' % source)
386387
self.LoadSource(source) # Just the last file
388+
self.parent.SetTitle(filepath)
387389
# Compare this with the debug above; did we change working dirs?
388390
# self.log.WriteText("CWD: %s\n" % os.getcwd())
389391
# self.log.write("CWD: %s\n" % os.getcwd())

0 commit comments

Comments
 (0)