diff options
author | deva <deva> | 2010-08-20 07:16:06 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-20 07:16:06 +0000 |
commit | 7e97935b7d719591005fc761ba885c0d9b7dd99f (patch) | |
tree | 0418c7a419555bdc1228c5e7fe8845acd0a21585 /client/macrowindow.cc | |
parent | fb6bcbfc31da3cdef6f6950e3e6aec900909b02e (diff) |
Set Values just after window generation is macro is static.
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(); |