diff options
author | deva <deva> | 2010-08-19 17:07:00 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-19 17:07:00 +0000 |
commit | 317469ebffd29bd06838f41ba151321c3abca406 (patch) | |
tree | 25bfbbb39bfb50c1bdc73a5cd738fb92e7640eab /client | |
parent | 024c2a5905c3f82a360e636d9f7db9941e30db23 (diff) |
Fix initial validation due to the widgets being invisible.
Diffstat (limited to 'client')
-rw-r--r-- | client/macrowindow.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 6e7249e..b10a6f0 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -129,7 +129,8 @@ void MacroWindow::initMacro(QDomNode &node) mainwidget = window; - mainwidget->setValues(); + // Moved to expandWrapper (validation bugfix) + // mainwidget->setValues(); if(waschanged == true) macroChanged(); @@ -226,6 +227,10 @@ void MacroWindow::expandWrapper() if(mainwidget) setExpandedWidget(mainwidget->qwidget()); expand(); + // Set values here, to be sure that the widgets are visible and thereby + // validate correctly. + mainwidget->setValues(); + // Set keyboard focus on the first focusable widget in the macro. QVector< Widget* > widgets; if(mainwidget) widgets = mainwidget->widgetList(true); @@ -303,7 +308,7 @@ void MacroWindow::setActive(bool active) void MacroWindow::clear() { - DEBUG(macrowindow, "clear %p\n", this); + // DEBUG(macrowindow, "clear %p\n", this); setExpandedWidget(NULL); if(mainwidget) delete mainwidget; |