From 72c42b0624e711a0917e5b472be2d29a6be7dade Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 10 Jan 2010 19:33:18 +0000 Subject: [PATCH] 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/trunk@32952 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 4e1adf70c8..ace28cb77b 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -239,7 +239,7 @@ GuiWorkArea::GuiWorkArea(QWidget *) : buffer_view_(0), lyx_view_(0), 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_() { } @@ -249,7 +249,7 @@ GuiWorkArea::GuiWorkArea(Buffer & buffer, GuiView & gv) : buffer_view_(0), lyx_view_(0), 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_() { setGuiView(gv); -- 2.39.2