Fix for activating a notepad that hasn't been shown yet can crash python
svn: r14031
This commit is contained in:
parent
8830a4c762
commit
29e2b12172
@ -621,9 +621,7 @@ class ToolManagedWindowBase(ManagedWindow.ManagedWindow):
|
|||||||
self.notebook.append_page(window, l)
|
self.notebook.append_page(window, l)
|
||||||
self.notebook.show_all()
|
self.notebook.show_all()
|
||||||
else:
|
else:
|
||||||
self.results_write("\n")
|
|
||||||
self.results_clear()
|
self.results_clear()
|
||||||
self.set_current_frame(frame_name)
|
|
||||||
return self.results_text
|
return self.results_text
|
||||||
|
|
||||||
def add_page(self, frame_name="Help"):
|
def add_page(self, frame_name="Help"):
|
||||||
@ -640,7 +638,10 @@ class ToolManagedWindowBase(ManagedWindow.ManagedWindow):
|
|||||||
l.set_use_markup(True)
|
l.set_use_markup(True)
|
||||||
self.notebook.append_page(window, l)
|
self.notebook.append_page(window, l)
|
||||||
self.notebook.show_all()
|
self.notebook.show_all()
|
||||||
self.set_current_frame(frame_name)
|
else:
|
||||||
|
# FIXME: get text
|
||||||
|
#
|
||||||
|
text = self.frames[frame_name][0][1].something
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def setup_other_frames(self):
|
def setup_other_frames(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user