From c58541468c5477323e35837a8f0aeaf41e5a0794 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 13 Aug 2010 11:56:34 +0000 Subject: Fix one too many resets of the LUA stack. --- client/widgets/window.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'client/widgets/window.cc') diff --git a/client/widgets/window.cc b/client/widgets/window.cc index 4d9253d..b480189 100644 --- a/client/widgets/window.cc +++ b/client/widgets/window.cc @@ -30,9 +30,14 @@ #include #include +//#define DEBUG(fmt...) printf(fmt) +#define DEBUG(ftm...) + Window::Window(QDomNode &node, MacroWindow *macrowindow) : Widget(node, macrowindow) { + DEBUG("window\n"); + widget = new QWidget(NULL); widget->setWindowFlags(Qt::WindowContextHelpButtonHint | @@ -60,6 +65,7 @@ Window::Window(QDomNode &node, MacroWindow *macrowindow) Window::~Window() { - printf("Delete (Window) %p\n", this); fflush(stdout); - // delete widget; + DEBUG("~window\n"); + + //delete widget; } -- cgit v1.2.3