Skip to content
Permalink
Browse files

Set focus to name field when saving or editing attribute table filters

  • Loading branch information
uclaros authored and nyalldawson committed Jun 24, 2020
1 parent 28e50c1 commit a43fc523affb197df6a0cce8bbe45b91bc07d3c2
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/attributetable/qgsfeaturefilterwidget.cpp
@@ -345,6 +345,7 @@ void QgsFeatureFilterWidget::saveAsStoredFilterExpression()
QLineEdit *nameEdit = new QLineEdit( dlg );
layout->addWidget( nameLabel );
layout->addWidget( nameEdit );
nameEdit->setFocus();

if ( dlg->exec() == QDialog::Accepted )
{
@@ -372,6 +373,7 @@ void QgsFeatureFilterWidget::editStoredFilterExpression()
layout->addWidget( nameEdit );
layout->addWidget( expressionLabel );
layout->addWidget( expressionEdit );
nameEdit->setFocus();

if ( dlg->exec() == QDialog::Accepted )
{

0 comments on commit a43fc52

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