From aef7d0bccc7b9d5672f1e560ce0c08fd466aa043 Mon Sep 17 00:00:00 2001 From: mgubi Date: Mon, 15 Dec 2008 17:08:55 +0000 Subject: [PATCH] Fix a bug induced in previous code cleanup git-svn-id: svn://svn.savannah.gnu.org/texmacs/trunk@2470 64cb5145-927a-446d-8aed-2fb7b4773692 --- src/src/Plugins/Qt/qt_menu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/src/Plugins/Qt/qt_menu.cpp b/src/src/Plugins/Qt/qt_menu.cpp index 1c1c8ed1..2d9b392e 100755 --- a/src/src/Plugins/Qt/qt_menu.cpp +++ b/src/src/Plugins/Qt/qt_menu.cpp @@ -403,13 +403,15 @@ simple_widget_rep::as_qaction () { void QTMLazyMenu::force () { if (!forced) { - widget w= pm->eval (); +// widget w= pm->eval (); + widget w= pm(); qt_menu_rep* wid= (qt_menu_rep*) (w.rep); QMenu* menu2= wid->item->menu (); replaceActions (this, menu2); delete (wid->item); wid->item= NULL; - pm= NULL; +// pm= NULL; forced= true; + QObject::disconnect (this, SIGNAL (aboutToShow ()), this, SLOT (force ())); } } -- 2.11.4.GIT