summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc
index d96facb..3776a6b 100644
--- a/client/macrowindow.cc
+++ b/client/macrowindow.cc
@@ -289,18 +289,7 @@ void MacroWindow::animated(QWidget *w)
if(is_static) return;
- printf("SetFocus:\n");
// Set keyboard focus on the first focusable widget in the macro.
- QVector< Widget* > widgets;
- widgets = mainwidget->widgetList(true);
- QVector< Widget* >::iterator i = widgets.begin();
- while(i != widgets.end()) {
- Widget *w = *i;
- if(w) {
- printf("\t%s\n", w->type().toStdString().c_str());
- }
- if(w && w->setKeyboardFocus()) break;
- i++;
- }
+ mainwidget->setKeyboardFocus();
}
}