Skip to content
Permalink
Browse files

locator should not delete it's contents on trigger

  • Loading branch information
uclaros authored and nyalldawson committed Mar 16, 2020
1 parent 50c4efb commit 57033e9cb1762454b3867c690f59775bc6233c23
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/gui/locator/qgslocatorwidget.cpp
@@ -144,7 +144,14 @@ void QgsLocatorWidget::setMapCanvas( QgsMapCanvas *canvas )

void QgsLocatorWidget::search( const QString &string )
{
mLineEdit->setText( string );
if ( string.isEmpty() )
{
mLineEdit->selectAll();
}
else
{
mLineEdit->setText( string );
}
window()->activateWindow(); // window must also be active - otherwise floating docks can steal keystrokes
scheduleDelayedPopup();
mLineEdit->setFocus();

0 comments on commit 57033e9

Please sign in to comment.
You can’t perform that action at this time.