diff --git a/dialog.cpp b/dialog.cpp index 048bb1ad3..fda6dbc11 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -421,6 +421,14 @@ void Dialog::showEvent(QShowEvent * event) d->view->centerOn(d->widget); } + if (d->view) { + d->view->setFocus(); + } + + if (d->widget) { + d->widget->setFocus(); + } + emit dialogVisible(true); }