Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Auto focus search box when opening "add layer to legend" dialog
Fixes #36905
  • Loading branch information
nyalldawson committed Jun 4, 2020
1 parent b5076e2 commit 019e494
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/layout/qgslayoutlegendlayersdialog.cpp
Expand Up @@ -39,6 +39,8 @@ QgsLayoutLegendLayersDialog::QgsLayoutLegendLayersDialog( QWidget *parent )

connect( mFilterLineEdit, &QLineEdit::textChanged, mModel, &QgsMapLayerProxyModel::setFilterString );
connect( mCheckBoxVisibleLayers, &QCheckBox::toggled, this, &QgsLayoutLegendLayersDialog::filterVisible );

mFilterLineEdit->setFocus();
}

void QgsLayoutLegendLayersDialog::setVisibleLayers( const QList<QgsMapLayer *> &layers )
Expand Down

0 comments on commit 019e494

Please sign in to comment.