diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-08 14:12:34 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-08 14:12:34 +0100 |
commit | c23a5647d61bf0653f5bec11adb23d7e4018fe3e (patch) | |
tree | a8ba02b7936ac3c1113b93d5ee60c22d98fda009 | |
parent | 2ef0beadb5e6b265912ec896266af65fd9de344a (diff) |
Foxus fix; take 2.
-rw-r--r-- | client/mainwindow.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 4e41418..121412e 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -356,6 +356,7 @@ void MainWindow::updateTemplates(QDomNodeList &nodes) entities[j] = e; entities[j]->update(node); central->layout()->addWidget(e->widget()); + if(j == 0) e->widget()->setFocus(); } else { entities[j]->update(node); } @@ -366,10 +367,6 @@ void MainWindow::updateTemplates(QDomNodeList &nodes) elem.tagName() + "' tag."); continue; } - - if(entities.size() > 0) { - entities[0]->widget()->setFocus(); - } } void MainWindow::setTemplate(QString name) |