From 1680325095c79bd66c13e6e0bd9fb6340c83a1e0 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 18 Jan 2011 12:53:43 +0000 Subject: Fix bug not showing all resume text after macro commit. --- client/macrowindow.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 142cfb4..369f71f 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -30,6 +30,7 @@ #include #include #include +#include #include "messagebox.h" #include "widgets/widget.h" @@ -107,6 +108,7 @@ void MacroWindow::initMacro(QDomNode &node) if(elem.attribute("state") == "dirty") state = ResumeWidget::DIRTY; } + collapse(); ((ResumeWidget*)collapsedWidget())->setText(resume, state); } else if(elem.tagName() == "script") { @@ -148,7 +150,6 @@ void MacroWindow::initMacro(QDomNode &node) } } -#include bool MacroWindow::doCommit() { if(mainwidget->valid()) { -- cgit v1.2.3