X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fpopup.cpp;fp=pv%2Fwidgets%2Fpopup.cpp;h=52701380787e8845dd7830955e526dabdd86a93b;hp=141985eb556a2e1c87ca2e558f90acd9203d7330;hb=1db1bdd6079178e218b3b1b0bd3e30efdf3e1690;hpb=0715fb8c638b53ac25590841fcbf3a1da3546b68 diff --git a/pv/widgets/popup.cpp b/pv/widgets/popup.cpp index 141985eb..52701380 100644 --- a/pv/widgets/popup.cpp +++ b/pv/widgets/popup.cpp @@ -78,7 +78,7 @@ bool Popup::eventFilter(QObject *obj, QEvent *evt) keyEvent = static_cast(evt); if (keyEvent->key() == Qt::Key_Enter || keyEvent->key() == Qt::Key_Return) { - this->close(); + close(); return true; } } @@ -104,6 +104,9 @@ void Popup::show() le->installEventFilter(this); else le->parent()->installEventFilter(this); + + le->selectAll(); + le->setFocus(); } }