summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2011-01-18 12:53:43 +0000
committerdeva <deva>2011-01-18 12:53:43 +0000
commit1680325095c79bd66c13e6e0bd9fb6340c83a1e0 (patch)
tree405136304f863da0ef2846bd12b918a491be5344 /client/macrowindow.cc
parentc30b6da061ef96ff8480a9538e33366d42b6c923 (diff)
Fix bug not showing all resume text after macro commit.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc3
1 files changed, 2 insertions, 1 deletions
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 <QDomDocument>
#include <QDomElement>
#include <QByteArray>
+#include <QApplication>
#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 <QApplication>
bool MacroWindow::doCommit()
{
if(mainwidget->valid()) {