]> git.lyx.org Git - features.git/commitdiff
Fix bug #6431: Crash when closing a workarea with a pending completion popup.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 10 Jan 2010 19:33:18 +0000 (19:33 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 10 Jan 2010 19:33:18 +0000 (19:33 +0000)
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

index 4e1adf70c8da3ff36a849e102c8d48e808692050..ace28cb77b5c357fae1f68f222facda2905ddc63 100644 (file)
@@ -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);