From 5c6dc4e9dc4e13e3531135ad434b540055c2393e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 19:56:18 +0300 Subject: move virtual member calls from popupmenu constuctor into postInit. --- src/gui/widgets/textfield.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/textfield.cpp') diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index bf5485a7b..04527e1ae 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -566,7 +566,10 @@ void TextField::mousePressed(gcn::MouseEvent &mouseEvent) else { if (!mPopupMenu) + { mPopupMenu = new PopupMenu(); + mPopupMenu->postInit(); + } int x = 0; int y = 0; SDL_GetMouseState(&x, &y); -- cgit v1.2.3-70-g09d2