diff options
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r-- | client/macrowindow.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc index b10a6f0..08bba6d 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -45,9 +45,11 @@ extern QString host; extern quint16 port; MacroWindow::MacroWindow(NetCom &n, QDomNode &xml_doc, QString templ, - bool collapsed, bool compact) + bool is_static, bool compact) : Collapser(), netcom(n) { + this->is_static = is_static; + DEBUG(macrowindow, "Constructor %p\n", this); mainwidget = NULL; @@ -61,7 +63,7 @@ MacroWindow::MacroWindow(NetCom &n, QDomNode &xml_doc, QString templ, update(xml_doc); - setCollapsed(collapsed); + setCollapsed(!is_static); active = true; connect(this, SIGNAL(doneCollapsing()), this, SLOT(collapsed())); @@ -131,6 +133,7 @@ void MacroWindow::initMacro(QDomNode &node) // Moved to expandWrapper (validation bugfix) // mainwidget->setValues(); + if(is_static) mainwidget->setValues(); if(waschanged == true) macroChanged(); |