diff options
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r-- | client/macrowindow.cc | 3 |
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()) { |