branch: Fix bug #6431: Crash when closing a workarea with a pending completion popup.

The GuiCompleter? has to have a parent, otherwise it is not destroyed when a GuiWorkArea? is destroyed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33280 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-30 17:55:10 +00:00
parent 3057d99d79
commit aa7903de80
2 changed files with 5 additions and 2 deletions

View File

@ -239,7 +239,7 @@ GuiWorkArea::GuiWorkArea(Buffer & buffer, GuiView & lv)
: buffer_view_(new BufferView(buffer)), lyx_view_(&lv),
cursor_visible_(false),
need_resize_(false), schedule_redraw_(false),
preedit_lines_(1), completer_(new GuiCompleter(this)),
preedit_lines_(1), completer_(new GuiCompleter(this, this)),
context_target_pos_()
{
buffer.workAreaManager().add(this);

View File

@ -115,9 +115,12 @@ What's new
* USER INTERFACE
- Fix crash when performing word-replace while the cursor has a selection
- Fix a crash when performing word-replace while the cursor has a selection
in mathed (bug 6437).
- Fix a crash when closing a document with a pending autocompletion popup
(bug 6431).
- While in ERT, disable non-functional sub- and superscript functions that
crashed LyX (bug 6459).